diff --git a/server/src/app.ts b/server/src/app.ts index f7cff5418..58684532c 100644 --- a/server/src/app.ts +++ b/server/src/app.ts @@ -75,7 +75,7 @@ export const createApp = ({ }) ); // Swagger UI — dynamically set server URL from request - app.use("/api-docs", swaggerUi.serve, (req, res, next) => { + app.use("/api-docs", swaggerUi.serve, (req: express.Request, res: express.Response, next: express.NextFunction) => { const protocol = req.protocol; const host = req.get("host"); const dynamicSpec = {