10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
export function healthRoute(): Response {
|
|
return new Response(JSON.stringify({
|
|
status: "ok",
|
|
uptime: process.uptime(),
|
|
timestamp: new Date().toISOString()
|
|
}), {
|
|
headers: { "Content-Type": "application/json" },
|
|
});
|
|
}
|