fix: correct PnL math and add health probe

This commit is contained in:
mindesbunister
2025-11-05 07:58:27 +01:00
parent 02193b7dce
commit cbb6592153
4 changed files with 33 additions and 18 deletions

16
app/api/health/route.ts Normal file
View File

@@ -0,0 +1,16 @@
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 }
)
}