Open kruczekrobert opened 1 year ago
Could you give some use case example?
Well, it would be extremely useful and convenient for middleware supporting object-level permissions.
e.g.
having an endpoint for get a resource, I would like to determine that Read permissions are enough.
GET(":id", someHandler, ObjectPermissionMiddleware(Read))
but it has to require a Write permission to edit it
PUT(":id", someHandler, ObjectPermissionMiddleware(Write))
Do we have any progress on this? It's a possible fix for #32
It would be useful to add middleware per endpoint