set role for routes in V6 #10422
-
How to set specific routes for admin or regular users using createBrowserRouter? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Mar 24, 2023
Replies: 0 comments 1 reply
-
In the loader of those routes check the role of the user. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MichaelDeBoey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the loader of those routes check the role of the user.