bolt.diy / app /routes /api.health.ts
Ashhar
sync with bolt.diy
c0a9bce
raw
history blame contribute delete
471 Bytes
import type { LoaderFunctionArgs } from '@remix-run/node';
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',
},
},
);
};