fix: add maintenances to API response (#171)

pull/177/head
Bennet Gallein 2026-01-01 13:45:02 +01:00 committed by GitHub
parent 3b5cc68d4a
commit 5878fff4ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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), {