//MySomethingController.php
public function getSomethingAction($args)
{
...
}
//routing.yml
my_something:
type: rest
resource: Blah\Bundle\BlahBundle\Controller\MySomethingController
works:
php app/console router:debug
Conclusion:
[router] Current routes
Name Method Pattern
get_something GET /somethings/{args}.{_format}
Why is the route "somethings" (plural with "s") instead of "something"?
Is this a parameter that I have somewhere? or is it expected?
source
share