From a8c40f50d6c754c9c5751f41e2a6ea2af18ae573 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 19 Oct 2024 06:56:07 +0100 Subject: [PATCH] fix swagger? --- projects/backend/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/backend/src/index.ts b/projects/backend/src/index.ts index c5df137..1417faf 100644 --- a/projects/backend/src/index.ts +++ b/projects/backend/src/index.ts @@ -161,7 +161,11 @@ app.use( /** * Swagger Documentation */ -app.use(swagger()); +app.use( + swagger({ + path: isProduction() ? "/api/swagger" : "/swagger", + }) +); app.onStart(() => { console.log("Listening on port http://localhost:8080");