import { BaseLayout } from "../views/layout"; import { formatUptime } from "../utils/format"; export function homeRoute(): Response { const uptime = formatUptime(process.uptime()); const startTimestamp = Date.now() - (process.uptime() * 1000); const content = `

Welcome

The Aurora web server is up and running!

Status

System operational.

Uptime: ${uptime}

`; const html = BaseLayout({ title: "Home", content }); return new Response(html, { headers: { "Content-Type": "text/html" }, }); }