fix: Remaining TypeScript strict mode errors in routes

This commit is contained in:
2026-02-04 23:19:32 +00:00
parent 7be99098f5
commit f4160b60f9
6 changed files with 294 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ import * as monitoringService from '../services/monitoring.js'
const router = Router()
// Get monitoring data
router.get('/', async (req: Request, res: Response) => {
router.get('/', async (_req: Request, res: Response) => {
try {
const data = await monitoringService.getMonitoringData()
res.json(data)
@@ -22,7 +22,7 @@ router.get('/', async (req: Request, res: Response) => {
})
// Trigger site availability check
router.post('/check-sites', async (req: Request, res: Response) => {
router.post('/check-sites', async (_req: Request, res: Response) => {
try {
console.log('[Monitor] Manual site check triggered')
const result = await monitoringService.checkAllSitesAvailability()