17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import { BaseLayout } from "../views/layout";
|
|
|
|
export function homeRoute(): Response {
|
|
const content = `
|
|
<div class="card">
|
|
<h2>Welcome</h2>
|
|
<p>The Aurora web server is up and running!</p>
|
|
</div>
|
|
`;
|
|
|
|
const html = BaseLayout({ title: "Home", content });
|
|
|
|
return new Response(html, {
|
|
headers: { "Content-Type": "text/html" },
|
|
});
|
|
}
|