flnxi-Wu/app/api/health/route.ts
WuYongJie f646b71813
Some checks failed
CI Check / check (push) Has been cancelled
chore: 初始化本地仓库并同步最近改动
2025-11-18 17:50:16 +08:00

15 lines
299 B
TypeScript

import { NextResponse } from 'next/server'
// Health check endpoint - 用于网络检测
export async function GET() {
return NextResponse.json({
status: 'ok',
timestamp: new Date().toISOString()
})
}
export async function HEAD() {
return new NextResponse(null, { status: 200 })
}