Skip to content

Commit

Permalink
Change route from .json to /json
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Oct 17, 2024
1 parent ee153b7 commit 33f9a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenApi/Controller/OpenApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function index(#[MapQueryString] LocaleParameter $localeParameter = new L
);
}

#[Route('/docs.json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])]
#[Route('/docs/json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])]
public function openapi(#[MapQueryString] LocaleParameter $localeParameter = new LocaleParameter()): JsonResponse
{
$config = $this->openApiService->getConfig();
Expand Down

0 comments on commit 33f9a7e

Please sign in to comment.