Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the default area accessible at /doc.json #2227

Open
JorickPepin opened this issue Mar 1, 2024 · 0 comments
Open

Make the default area accessible at /doc.json #2227

JorickPepin opened this issue Mar 1, 2024 · 0 comments

Comments

@JorickPepin
Copy link

Having the following configuration, I can access the default area at /doc (as well as /doc/default), but I get a 404 error at /doc.json. I have to go to /doc/default.json to get it. Is this configurable? Thanks.

app.swagger_json:
    path: /doc/{area}.json
    methods: GET
    defaults: { _controller: nelmio_api_doc.controller.swagger_json, area: default }

app.swagger_ui:
   path: /doc/{area}
   methods: GET
   defaults: { _controller: nelmio_api_doc.controller.swagger_ui, area: default }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant