Allow users to configure the api doc URL

This commit is contained in:
Jordi Boggiano 2012-04-13 10:42:31 +02:00
parent 3eb1f456d0
commit 8426a3a70e
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ Import the routing definition in `routing.yml`:
# app/config/routing.yml
NelmioApiDocBundle:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /
prefix: /api/doc
Enable the bundle's configuration in `app/config/config.yml`:

View File

@ -1,5 +1,5 @@
nelmio_api_doc_index:
pattern: /api/doc
pattern: /
defaults: { _controller: NelmioApiDocBundle:ApiDoc:index }
requirements:
_method: GET