| 123456789101112131415 |
- import { NextResponse } from 'next/server'
- import { MonitorService } from '@/lib/monitor/index'
- export async function POST() {
- try {
- const monitor = MonitorService.getInstance()
- await monitor.stop()
- return NextResponse.json({ success: true, status: monitor.getStatus() })
- } catch (e) {
- return NextResponse.json(
- { error: e instanceof Error ? e.message : 'Unknown error' },
- { status: 500 },
- )
- }
- }
|