Files
OSIT-AE-App-Svelte/src/routes/health/+server.ts
2026-03-24 12:18:27 -04:00

23 lines
565 B
TypeScript

import { json } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
/**
* Health Check Endpoint
* Used by Docker and Nginx to verify the service is running.
*/
export const GET: RequestHandler = async () => {
return json(
{
status: 'healthy',
timestamp: new Date().toISOString(),
service: 'aether-app-sveltekit',
node_env: process.env.NODE_ENV || 'development'
},
{
headers: {
'Cache-Control': 'no-cache'
}
}
);
};