feat(admin-portal): 完整实现 admin-portal 管理端微前端
包含 src 全部实现、Dockerfile、配置文件等
This commit is contained in:
17
apps/admin-portal/src/app/api/health/route.ts
Normal file
17
apps/admin-portal/src/app/api/health/route.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 健康检查 - Liveness
|
||||
*
|
||||
* GET /api/health
|
||||
* 返回 200 表示进程存活
|
||||
*/
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export function GET(): NextResponse {
|
||||
return NextResponse.json({
|
||||
status: "ok",
|
||||
service: "admin-portal",
|
||||
timestamp: Date.now(),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user