I have an action inside my controller class, and I need two different routes, as shown below:
public function chooseDateAction()
{
return array( );
}
The reason for this I would like to provide access to routes for some users, but the user role is different.
Let's say:
A user with a role supervisorcan accesssup_choose_date
A user with a role usercan accessuser_choose_date
The question is, is it possible to have two different routes for one action? or am I duplicating code for different routes?
source
share