Skip to content

Instantly share code, notes, and snippets.

@spolischook
Forked from stof/config.yml
Created December 4, 2013 21:46
Show Gist options
  • Save spolischook/7796170 to your computer and use it in GitHub Desktop.
Save spolischook/7796170 to your computer and use it in GitHub Desktop.
fos_js_routing:
routes_to_expose:
- "^api_.*" # expose all routes with a name starting with api_
LSApiBundle:
resource: "@LSApiBundle/Resources/config/routing_api.yml"
type: rest
prefix: /api
users:
resource: LS\ApiBundle\Controller\UsersController
type: rest
name_prefix: api_ # add the api_ prefix for the route name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment