import { Controller, Get } from "@nestjs/common";
import { ApiOperation, ApiTags } from "@nestjs/swagger";

@ApiTags("Health")
@Controller("health")
export class HealthController {
  @Get()
  @ApiOperation({ summary: "Liveness probe" })
  check() {
    return {
      status: "ok",
      service: "edr-payment-api",
      timestamp: new Date().toISOString(),
    };
  }
}
