23 lines
565 B
TypeScript
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'
|
|
}
|
|
}
|
|
);
|
|
};
|