mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Allow users to configure the api doc URL
This commit is contained in:
parent
3eb1f456d0
commit
8426a3a70e
@ -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…
x
Reference in New Issue
Block a user