rwadurian/frontend/mobile-upgrade/src/app/api/health/route.ts

17 lines
353 B
TypeScript

import { NextResponse } from 'next/server';
/**
* 健康检查 API
* 用于 Docker 容器健康检查和负载均衡器探测
*/
export async function GET() {
return NextResponse.json(
{
status: 'ok',
timestamp: new Date().toISOString(),
service: 'rwadurian-mobile-upgrade',
},
{ status: 200 }
);
}