fix: add maintenances to API response

pull/171/head
Bennet Gallein 2025-12-31 23:40:03 +01:00
parent 3b5cc68d4a
commit 0c15c9132c
No known key found for this signature in database
GPG Key ID: 54F2DF6954E8C635
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { workerConfig } from '@/uptime.config'
import { maintenances, workerConfig } from '@/uptime.config'
import { MonitorState } from '@/types/config'
import { NextRequest } from 'next/server'
@ -39,7 +39,8 @@ export default async function handler(req: NextRequest): Promise<Response> {
up: state.overallUp,
down: state.overallDown,
updatedAt: state.lastUpdate,
monitors: monitors,
monitors,
maintenances,
}
return new Response(JSON.stringify(ret), {