1
2
3
4
5
6
7
8
9
10
11
12
import { honoHead } from "https://esm.town/v/andreterron/honoHead";
export async function honoGameTest(req: Request) {
const { Hono } = await import("npm:hono");
const { html } = await import("npm:hono/html");
const app = new Hono();
app.get("/", (c) => {
const head = honoHead("Test");
return c.html(html`<div style="background-color: pink;">Hello!</div>`);
});
return app.fetch(req);
}