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
"@tsed/ajv": "^6.70.1", "@tsed/common": "^6.70.1", "@tsed/core": "^6.70.1", "@tsed/di": "^6.70.1", "@tsed/exceptions": "^6.70.1", "@tsed/json-mapper": "^6.70.1", "@tsed/mongoose": "^6.70.1", "@tsed/platform-express": "^6.70.1", "@tsed/schema": "^6.70.1", "@tsed/swagger": "^6.70.1",
I tried to implement inheritance as mentioned in https://tsed.io/docs/controllers.html#inheritance, but it won't work when @UseAuth decorator is used.
@UseAuth
Will have routes from BaseController
@Controller("/parent") export abstract class ChildController extends BaseController {
Will not have routes from BaseController
@Controller("/parent") @UseAuth(UserAuthMiddleware) export abstract class ChildController extends BaseController {
The text was updated successfully, but these errors were encountered:
@Controller({ path: "/parent", middlewares: { use: [UserAuthMiddleware], }, })
This works as a temp fix.
Sorry, something went wrong.
Repro: https://github.com/sidharthv96/tsed1535
Fixed by this pr #1545
Thanks a ton @Romakita !!
Romakita
No branches or pull requests
Information
I tried to implement inheritance as mentioned in https://tsed.io/docs/controllers.html#inheritance, but it won't work when
@UseAuth
decorator is used.Will have routes from BaseController
Will not have routes from BaseController
Acceptance criteria
@UseAuth
DecoratorThe text was updated successfully, but these errors were encountered: