fix: add maintenances to API response (#171)

This commit is contained in:
Bennet Gallein authored and GitHub committed 2026-01-01 20:45:02 +08:00
1 parent 3b5cc68d4a
commit 5878fff4ba
1 file changed
+3 -2
+3 -2
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), {