diff options
Diffstat (limited to 'src/index.ts')
| -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); |
