Skip to content

Commit 5351de1

Browse files
committed
Create server.jsx
1 parent cf8ef80 commit 5351de1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

website/server.jsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// @ts-check
2+
3+
import { Hono } from "hono";
4+
import Layout from "./layouts/Layout.jsx";
5+
6+
const app = new Hono();
7+
8+
/**
9+
* Handles GET requests for the root route "/"
10+
* @param {import("hono").Context} c - The Hono context object
11+
* @returns {Response} The HTML response using the Layout component
12+
*/
13+
app.get("/", (c) => {
14+
return c.html(<Layout></Layout>);
15+
});
16+
17+
export default app;

0 commit comments

Comments
 (0)