Skip to content

Commit

Permalink
Create server.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mashaal committed Oct 28, 2024
1 parent cf8ef80 commit 5351de1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/server.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import { Hono } from "hono";
import Layout from "./layouts/Layout.jsx";

const app = new Hono();

/**
* Handles GET requests for the root route "/"
* @param {import("hono").Context} c - The Hono context object
* @returns {Response} The HTML response using the Layout component
*/
app.get("/", (c) => {
return c.html(<Layout></Layout>);
});

export default app;

0 comments on commit 5351de1

Please sign in to comment.