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. `currentUserChecker` should be defined in routing-controllers options. ||
1587
+
|`@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. ||
1588
1588
|`@CurrentUser(options?: { required?: boolean })`| get(@CurrentUser({ required: true }) user: User) | Injects currently authorized user. `currentUserChecker` should be defined in routing-controllers options. |
1589
1589
|`@Header(headerName: string, headerValue: string)`|`@Header("Cache-Control", "private")` get() | Allows to explicitly set any HTTP header returned in the response. |
1590
1590
|`@ContentType(contentType: string)`|`@ContentType("text/csv")` get() | Allows to explicitly set HTTP Content-Type returned in the response. |
0 commit comments