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