fix: user should be able to access Swagger docs from localhost:1337 (#1292)
This commit is contained in:
parent
67aa13610c
commit
0ef13313ce
@ -45,7 +45,7 @@ export const startServer = async (schemaPath?: string, baseDir?: string) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await server.register(require("@fastify/swagger-ui"), {
|
await server.register(require("@fastify/swagger-ui"), {
|
||||||
routePrefix: "/docs",
|
routePrefix: "/",
|
||||||
baseDir: baseDir ?? path.join(__dirname, "../..", "./docs/openapi"),
|
baseDir: baseDir ?? path.join(__dirname, "../..", "./docs/openapi"),
|
||||||
uiConfig: {
|
uiConfig: {
|
||||||
docExpansion: "full",
|
docExpansion: "full",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user