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 !
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