summaryrefslogtreecommitdiff
path: root/cgithub/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cgithub/src/index.ts')
-rw-r--r--cgithub/src/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgithub/src/index.ts b/cgithub/src/index.ts
index d8bdfec..f676bd6 100644
--- a/cgithub/src/index.ts
+++ b/cgithub/src/index.ts
@@ -9,12 +9,12 @@ import {
getGitHubBlob,
getGitHubCommits,
getGitHubIssues,
+ getGitHubOwner,
getGitHubPulls,
getGitHubRelease,
getGitHubReleases,
getGitHubRepo,
getGitHubTree,
- getGitHubUser,
GitHubHTTPError,
RedirectError,
} from "./scraper.ts";
@@ -52,9 +52,9 @@ async function tryRender<T extends object>(c: Context, template: string, promise
return c.html(await eta.renderAsync(template, data));
}
-app.get("/:user", async (c) => {
- const { user } = c.req.param();
- return tryRender(c, "user.eta", getGitHubUser(user));
+app.get("/:owner", async (c) => {
+ const { owner } = c.req.param();
+ return tryRender(c, "owner.eta", getGitHubOwner(owner));
});
app.get("/:owner/:repo", async (c) => {