7d250ec342
Co-Authored-By: Claude Code <noreply@anthropic.com>
12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
// services/api/src/health.controller.ts
|
|
// GET /v1/health —— 存活探针(P1a 仅此一个端点,后续任务逐步扩展)。
|
|
import { Controller, Get } from '@nestjs/common';
|
|
|
|
@Controller('health')
|
|
export class HealthController {
|
|
@Get()
|
|
check(): { status: 'ok' } {
|
|
return { status: 'ok' };
|
|
}
|
|
}
|