We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Get('/admin', { middleware: [ AuthMiddleware('admin') ]})
resolve(role: 'user' | 'admin'),或者函数中间件支持 Inject 也可以(可以包一层函数返回)?
否则只能在内部根据路由匹配策略了。
The text was updated successfully, but these errors were encountered:
类中间件目前不支持传参,resolve 的参数已经有了,所以应该没法加在这个地方。
Sorry, something went wrong.
同样的问题,现在支持了吗?
No branches or pull requests
resolve(role: 'user' | 'admin'),或者函数中间件支持 Inject 也可以(可以包一层函数返回)?
否则只能在内部根据路由匹配策略了。
The text was updated successfully, but these errors were encountered: