Created
June 28, 2012 13:48
-
-
Save stof/3011489 to your computer and use it in GitHub Desktop.
FOSJSRoutingBundle with FOSRestBundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fos_js_routing: | |
routes_to_expose: | |
- "^api_.*" # expose all routes with a name starting with api_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LSApiBundle: | |
resource: "@LSApiBundle/Resources/config/routing_api.yml" | |
type: rest | |
prefix: /api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
users: | |
resource: LS\ApiBundle\Controller\UsersController | |
type: rest | |
name_prefix: api_ # add the api_ prefix for the route name |
+1 Thanks!
+1 Thanks!
+1 Cookie! ^^
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks :D