mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
Allow users to configure the api doc URL
This commit is contained in:
parent
3eb1f456d0
commit
8426a3a70e
2 changed files with 2 additions and 2 deletions
|
@ -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`:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
nelmio_api_doc_index:
|
||||
pattern: /api/doc
|
||||
pattern: /
|
||||
defaults: { _controller: NelmioApiDocBundle:ApiDoc:index }
|
||||
requirements:
|
||||
_method: GET
|
||||
|
|
Loading…
Add table
Reference in a new issue