How better to solve this problem:
Here is the route in the usual CNC format:
htt://domain.com/user/list Where user is the controller and list is the action.
It is necessary at the beginning of each route to indicate the id of the entity with which the work is done, like so
htt://domain.com/25/user/list And at the same time, it is necessary that controllers are created and actions are invoked according to the usual script, if the id of this entity ( 25 ) exists in the database.
UPDATE
25 is the project ID, not the user ID. And the route asks to give all the users of the project with ID = 25.
Another example:
htt://domain.com/ru/user/list Or:
htt://domain.com/en/user/list
htt://domain.com/25/user/list- nobody does this. only perverts ....http://domain.com/user/25- so they do andhttp://domain.com/users/page/25do - Alexey Shimansky