- Add account, JWT session, revocation, cookie and bearer handling. - Protect server surfaces while preserving public health, manifest and disabled mode. - Add SQLite migration and focused server regression coverage.
24 lines
656 B
TypeScript
24 lines
656 B
TypeScript
import { Controller, Get } from "@nestjs/common";
|
|
import { ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger";
|
|
import { Public } from "../auth/public.decorator";
|
|
|
|
@ApiTags("health")
|
|
@Controller()
|
|
export class HealthController {
|
|
@Get("health")
|
|
@Public()
|
|
@ApiOperation({ summary: "Health check" })
|
|
@ApiResponse({ status: 200, description: "Service is healthy" })
|
|
health(): { status: string } {
|
|
return { status: "ok" };
|
|
}
|
|
|
|
@Get("healthz")
|
|
@Public()
|
|
@ApiOperation({ summary: "Health check" })
|
|
@ApiResponse({ status: 200, description: "Service is healthy" })
|
|
healthz(): { status: string } {
|
|
return { status: "ok" };
|
|
}
|
|
}
|