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) => {