Answer the question
In order to leave comments, you need to log in
In which controller is it correct to place a method that returns group users?
There is a user entity and a UserController controller corresponding to it with get, edit, delete methods
there is a group entity and a GroupControlle controller corresponding to it with create, get, edit, delete methods
user can be in several groups, links in the user_groups table It is
necessary to place the getUsersByGroupId method processing the address / groups/:group_id/users
In which controller should this method be placed and why?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question