fix: TypeScript strict mode errors in server and services
This commit is contained in:
@@ -22,7 +22,7 @@ app.use(cors({
|
||||
app.use(express.json())
|
||||
|
||||
// Health check
|
||||
app.get('/api/health', (req, res) => {
|
||||
app.get('/api/health', (_req, res) => {
|
||||
res.json({ status: 'ok', timestamp: new Date().toISOString() })
|
||||
})
|
||||
|
||||
@@ -34,7 +34,7 @@ app.use('/api/hetzner', hetznerRouter)
|
||||
app.use('/api/wp-monitor', wpMonitorRouter)
|
||||
|
||||
// Error handling
|
||||
app.use((err: any, req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
app.use((err: any, _req: express.Request, res: express.Response, _next: express.NextFunction) => {
|
||||
console.error('Server error:', err)
|
||||
res.status(500).json({ error: 'Internal server error' })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user