Skip to content

Instantly share code, notes, and snippets.

@stof
Created June 28, 2012 13:48
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stof/3011489 to your computer and use it in GitHub Desktop.
Save stof/3011489 to your computer and use it in GitHub Desktop.
FOSJSRoutingBundle with FOSRestBundle
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
@zavan
Copy link

zavan commented Jul 5, 2013

Thanks :D

@spolischook
Copy link

+1 Thanks!

@jverdeyen
Copy link

+1 Thanks!

@cAstraea
Copy link

cAstraea commented May 6, 2016

+1 Cookie! ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment