I’m building a backend application and it has four types of users (roles) which are student, editor, approver and admin, should I make a separate route for every role of them?
I’ve seen done in some code snippets like this:
student route:
<code>example.com/student
</code>
<code>example.com/student
</code>
example.com/student
approver, editor, admin routes:
<code>example.com/admin
</code>
<code>example.com/admin
</code>
example.com/admin
you can see that all roles but student (regular user) are grouped in admin routes, so, how do I determine which roles share the same routes and which users should have separate routes?
I know this could be an opinion based question, but opinions would help as well.