sf-api-example/app/config/routing.yml
2016-11-23 20:11:32 +01:00

18 lines
389 B
YAML

app:
resource: "@AppBundle/Controller/"
type: annotation
api_book:
resource: AppBundle\Controller\Api\BookController
type: rest
prefix: api
api_category:
resource: AppBundle\Controller\Api\CategoryController
type: rest
defaults: {_format: json}
prefix: api
fos_js_routing:
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"