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 | 99d49959148251151b5121f45d26ae0ac5694120 (patch) | |
| tree | 250d3402bfcf582ba61fe52faf64ab3500bf1b0e /src | |
| parent | 7132094f28ca2dc08c32f207ade9c63a28952115 (diff) | |
Use Phosphor Icons
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts index 393c5ec..43d4cfa 100644 --- a/src/index.ts +++ b/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); |
