From 0ef13313cef2da8d343dcb341714cc4b2346dfe8 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 2 Jan 2024 17:27:16 +0700 Subject: [PATCH] fix: user should be able to access Swagger docs from localhost:1337 (#1292) --- server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index 3d6ede634..6a03c06fd 100644 --- a/server/index.ts +++ b/server/index.ts @@ -45,7 +45,7 @@ export const startServer = async (schemaPath?: string, baseDir?: string) => { }); await server.register(require("@fastify/swagger-ui"), { - routePrefix: "/docs", + routePrefix: "/", baseDir: baseDir ?? path.join(__dirname, "../..", "./docs/openapi"), uiConfig: { docExpansion: "full",