fix: user should be able to access Swagger docs from localhost:1337 (#1292)

This commit is contained in:
Louis 2024-01-02 17:27:16 +07:00 committed by GitHub
parent 67aa13610c
commit 0ef13313ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",