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
Is your feature request related to a problem? Please describe.
Let's say I have a global AuthGuard because almost all my routes need authentication.
The few that don't need it should have a decorator such as @Public that set metadata.
In my global AuthGuard, I should be able to get a reference to the Method (via ctx) to get access to its metadata.
Describe the solution you'd like
In router/router.ts:handleRoute, we should add Controller and ControllerMethod in ctx !
Additional context
Maybe something similar to NestJS
ctx.getHandler(),
ctx.getClass(),
The text was updated successfully, but these errors were encountered:
Sorikairox
changed the title
Access controlle/method in context
Access controller/method in context
Nov 11, 2022
Is your feature request related to a problem? Please describe.
Let's say I have a global
AuthGuard
because almost all my routes need authentication.The few that don't need it should have a decorator such as
@Public
that set metadata.In my global
AuthGuard
, I should be able to get a reference to the Method (viactx
) to get access to its metadata.Describe the solution you'd like
In
router/router.ts:handleRoute
, we should addController
andControllerMethod
inctx
!Additional context
Maybe something similar to NestJS
The text was updated successfully, but these errors were encountered: