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
To get the express req, res, next functions, we need to inject them into the action method with @request, @response, @next.
It would be much neater to have them on the BaseHttpController base class, so we can just do this.request, this.response, this.next.
Same thing for other related injectable things, like principal.
This would also avoid the "no-shadowed-variable" linting error when we have an argument like @next() next: express.NextFunction, which is really annoying.
The text was updated successfully, but these errors were encountered:
For
inversify-express-utils
package.To get the express
req
,res
,next
functions, we need to inject them into the action method with@request
,@response
,@next
.It would be much neater to have them on the
BaseHttpController
base class, so we can just dothis.request
,this.response
,this.next
.Same thing for other related injectable things, like
principal
.This would also avoid the
"no-shadowed-variable"
linting error when we have an argument like@next() next: express.NextFunction
, which is really annoying.The text was updated successfully, but these errors were encountered: