bolt.diy/app/routes/api.health.ts
2025-03-14 07:27:30 -07:00

19 lines
473 B
TypeScript

import type { LoaderFunctionArgs } from '~/lib/remix-types';
export const loader = async ({ request: _request }: LoaderFunctionArgs) => {
// Return a simple 200 OK response with some basic health information
return new Response(
JSON.stringify({
status: 'healthy',
timestamp: new Date().toISOString(),
uptime: process.uptime(),
}),
{
status: 200,
headers: {
'Content-Type': 'application/json',
},
},
);
};