Skip to content

Commit

Permalink
Merge pull request #7464 from voltagex-forks/openapi-json
Browse files Browse the repository at this point in the history
Enable Swagger JSON output in routing.yml
  • Loading branch information
j0k3r committed May 14, 2024
2 parents 94f5063 + 0fc764c commit a5a4a89
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 a5a4a89

Please sign in to comment.