@@ -20,8 +20,8 @@ app.use(cors());
|
|||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
// Swagger Documentation
|
// Swagger Documentation
|
||||||
app.use('/api-docs', swaggerUi.serve);
|
app.use('/api-docs', ...swaggerUi.serve as any);
|
||||||
app.get('/api-docs', swaggerUi.setup(swaggerSpec));
|
app.get('/api-docs', swaggerUi.setup(swaggerSpec) as any);
|
||||||
|
|
||||||
// Health check
|
// Health check
|
||||||
app.get('/health', (req: Request, res: Response) => {
|
app.get('/health', (req: Request, res: Response) => {
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user