From 671a8628ccf8784a2365cd9c20c89130365cfe19 Mon Sep 17 00:00:00 2001 From: Gnlow Date: Fri, 8 Dec 2023 16:07:16 +0900 Subject: [PATCH] add main page --- mod.ts | 3 +++ view/index.html | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 view/index.html diff --git a/mod.ts b/mod.ts index 2d40763..ad1289e 100644 --- a/mod.ts +++ b/mod.ts @@ -105,6 +105,9 @@ app.get("/api/js/:id", async c => { return c.body(await api.js(c.req.param("id"))) }) +app.get("/", async c => c.html( + await Deno.readTextFile("view/index.html") +)) app.get("/p/:id", c => c.html(` diff --git a/view/index.html b/view/index.html new file mode 100644 index 0000000..31fa111 --- /dev/null +++ b/view/index.html @@ -0,0 +1,52 @@ + + + + + + + + +

+ enz-pixi + + + +

+ +
+ + \ No newline at end of file