Skip to content

Commit

Permalink
Enable Swagger JSON output in routing.yml
Browse files Browse the repository at this point in the history
Fixes #7462
  • Loading branch information
Adam Baxter committed May 5, 2024
1 parent fb87aec commit 0fc764c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0fc764c

Please sign in to comment.