Enable Swagger JSON output in routing.yml

Fixes #7462
This commit is contained in:
Adam Baxter 2024-05-04 22:20:20 +10:00
parent fb87aecec4
commit 0fc764c385

View file

@ -6,6 +6,11 @@ doc-api:
resource: "@NelmioApiDocBundle/config/routing/swaggerui.xml"
prefix: /api/doc
doc-api-json:
path: /api/doc.json
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger }
homepage:
path: "/{page}"
defaults: