Clear and concise description of the problem
Today we define authentication in swagger:
detail: {
summary: 'Create Article',
security: [
{
tokenAuth: [],
},
],
},
and runtime:
beforeHandle: app.store.authService.requireLogin,
This is done for each endpoint individually.
Suggested solution
What if there was a way to reduce the SoTs and lean on ElysiaJS Grouping ? Or at the very least, create a utility to provide both the detail and the beforeHandle to the plugin hook at the same time.
Alternative
No response
Additional context
Continued from here: #145 (comment)
Validations
Clear and concise description of the problem
Today we define authentication in swagger:
and runtime:
This is done for each endpoint individually.
Suggested solution
What if there was a way to reduce the SoTs and lean on ElysiaJS Grouping ? Or at the very least, create a utility to provide both the detail and the beforeHandle to the plugin hook at the same time.
Alternative
No response
Additional context
Continued from here: #145 (comment)
Validations
README.md.