Skip to content

Commit dc528ab

Browse files
authored
refactor: Add missing route to OPENAPI_ROUTES (#769)
1 parent cb6a7c9 commit dc528ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/middleware/open-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import swagger from "@fastify/swagger";
22
import type { FastifyInstance } from "fastify";
33

4-
export const OPENAPI_ROUTES = ["/json", "/openapi.json"];
4+
export const OPENAPI_ROUTES = ["/json", "/openapi.json", "/json/"];
55

66
export const withOpenApi = async (server: FastifyInstance) => {
77
await server.register(swagger, {

0 commit comments

Comments
 (0)