From bd95c72b2456a5bb60a5c698ca9bc3f509cda465 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 9 Oct 2025 03:11:18 +0200 Subject: [PATCH] fix swagger Signed-off-by: ale --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 51f3b4d..bbe5d63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,8 @@ app.use(cors()); app.use(express.json()); // Swagger Documentation -app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec)); +app.use('/api-docs', swaggerUi.serve); +app.get('/api-docs', swaggerUi.setup(swaggerSpec)); // Health check app.get('/health', (req: Request, res: Response) => {