Open jfsagasti opened 1 year ago
That file is actually a leftover of the authentication rocket that was removed from the core. We should probably rework that rocket in a way that also helps you to set roles up and move the @Role
decorator as well as the role-based authorized to the rocket repository.
Feature Request
Description
When generating the initial project scaffolding, the file
src/config/roles.ts
mentioned in the documentation should be automatically created as well.Possible Solution
Create the
roles.ts
file as part of the initial scaffolding, or ask at least during the CLI init if you plan to use authentication.In the file, include a commented example of how a role could look: