diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-25 17:24:19 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-25 17:54:55 -0500 |
| commit | b471cbde1e733fa30ad69da59cee21bcf8e66ea1 (patch) | |
| tree | c5593e8fd8f65cc55ba170f4e62b37138f93b063 /cgithub/src/index.ts | |
| parent | 0391e279f80f6406502b4069bf2e13d3f13ed56e (diff) | |
Use Phosphor Icons
Diffstat (limited to 'cgithub/src/index.ts')
| -rw-r--r-- | cgithub/src/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgithub/src/index.ts b/cgithub/src/index.ts index 393c5ec..43d4cfa 100644 --- a/cgithub/src/index.ts +++ b/cgithub/src/index.ts @@ -13,6 +13,10 @@ const eta = new Eta({ views: path.join(__dirname, "..", "views") }); app.use("/static/*", serveStatic({ root: path.join(__dirname, "..") })); +app.get("/", async (c) => { + return c.html(await eta.renderAsync("home.eta", {})); +}); + app.get("/:owner/:repo", async (c) => { const { owner, repo } = c.req.param(); const data = await getGitHubRepo(owner, repo); |
