You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can try but I'm not really familiar with this plugin or swagger/openapi in general.
Looking at the code, I was wondering if it could not be possible to do it in the shouldRouteHide method.
I did not spend enough time yet reading the code, so Im not sure if that method is call at runtime/fly or prior fastify start ( like a plugin would do
when calling register(....) ).
Prerequisites
Issue
Hello,
Let say an app have 3 scope of permission (
user
/moderator
/admin
) . Is there a way tohide
the route that a user is not supposed to use ?For example, someone with
admin
scope could see all the routes while someone withmoderator
oruser
would have a limited view ?Thanks
The text was updated successfully, but these errors were encountered: