diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-10 00:53:48 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-10 01:01:04 -0400 |
| commit | ca0291062362b3036077cb14bd8d13aca1cde62d (patch) | |
| tree | 0385ba222e6edd7392d5c9971761be8db356fc71 /src/app.ts | |
| parent | 84ac17c0c2cc694dd481dac25f5cc898cdaf0f3d (diff) | |
Redirect /notifications instead of scraping it as an owner
A signed-out request for github.com/notifications is bounced to a login
page, so the owner route followed that redirect and left the visitor on
/login. Hand the path over to GitHub before it reaches the route.
Diffstat (limited to 'src/app.ts')
| -rw-r--r-- | src/app.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -95,6 +95,11 @@ export function createApp(eta: Eta) { return c.render("home.eta"); }); + // Exclusion that immediately redirects to GitHub. + app.get("/notifications", async (c) => { + return redirectToGitHub(c); + }); + // GitHub's global search, which we only serve when it is scoped to a single // repository: strip the qualifier and let that repository's search route // decide what to do with the rest. |
