Files
trading_bot_v4/app/api/health/route.ts
2025-11-05 07:58:27 +01:00

17 lines
341 B
TypeScript

import { NextResponse } from 'next/server'
/**
* Health check endpoint for Docker HEALTHCHECK
* Returns 200 OK if the server is running
*/
export async function GET() {
return NextResponse.json(
{
status: 'healthy',
timestamp: new Date().toISOString(),
uptime: process.uptime(),
},
{ status: 200 }
)
}