15 lines
299 B
TypeScript
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 })
|
|
}
|
|
|