Closed
Description
DESCRIPTION
Sometimes there's a scenerio where I don't want to enable certain routes. I.E having a read-only route which has just a GET for the list and a GET for the find.
/users
/users/1
STEPS TO REPRODUCE
Create a new project and add a model + controller. All routes will be generated with relationships etc.
EXPECTED BEHAVIOR
Having a option to specify the routes which are allowed. No specification should lead to all routes being active.
[AllowedRoutes('find', 'index')]
ACTUAL BEHAVIOR
All routes are generated no matter the controller.
VERSIONS USED
- JsonApiDotNetCore version:
- ASP.NET Core version: 5
- Entity Framework Core version: 5.0.9
- Database provider: SQL Server 4.2.0
Metadata
Metadata
Assignees
Labels
No labels