By route check resource


#1

Hi all, how can by route path or route name check belongs to resource this route?


#2

Or how check menu punk for permission?? i use rbac bundle


#3

You can use the debug:router command and then look in the output for the route you are looking for. In Linux you could do something like this:
bin/console debug:router | grep '/api'
to get all the API Routes. On the left you see the route name. If you then call the debug:router command again with the name of the route you get the controller it belongs to.