You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`@Authorized(roles?: string\|string[])`|`@Authorized("SUPER_ADMIN")` get() | Checks if user is authorized and has given roles on a given route. `authorizationChecker` should be defined in routing-controllers options. ||
1565
+
|`@Authorized(roles?: string\|string[])`|`@Authorized("SUPER_ADMIN")` get() | Checks if user is authorized and has given roles on a given route. `authorizationChecker` should be defined in routing-controllers options. |
1539
1566
|`@CurrentUser(options?: { required?: boolean })`| get(@CurrentUser({ required: true }) user: User) | Injects currently authorized user. `currentUserChecker` should be defined in routing-controllers options. |
1540
1567
|`@Header(headerName: string, headerValue: string)`|`@Header("Cache-Control", "private")` get() | Allows to explicitly set any HTTP header returned in the response. |
1541
1568
|`@ContentType(contentType: string)`|`@ContentType("text/csv")` get() | Allows to explicitly set HTTP Content-Type returned in the response. |
0 commit comments