What is an option to deepen my resources? I do not want the following design:
Resources: Users use resources: Dashboard do resources: Comments, End of chart end A user has a dashboard and there will be several charts and comments in the dashboard.
What is the alternative? I have heard that it is not good to deeply like the nesting routes. Or not more than at least 1 level
Thank you in advance.
Finally, for most user convenience in the URL, if it is understandable for nesting So, it should be there.
I think, : User is for authentication and authorization. Therefore, it will be logical to not see / users / 2 / at the beginning of each URL, unless people can see each other's dashboard
No comments:
Post a Comment