-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
- Read the Contributing Guide.
- Read the
README.md
. - Check that there isn't already an issue that requests the same feature.
Metadata
Metadata
Assignees
Labels
No labels