e6541c4 / anbot.mjs
diff --git a/anbot.mjs b/anbot.mjs
index a9a997c..e87bb04 100644
--- a/anbot.mjs
+++ b/anbot.mjs
@@ -214,7 +214,7 @@ function parseWebPath(rest) {
}
function matchWebRoute(pathname) {
- if (pathname === '/') return { kind: 'index' }
+ if (pathname === '/git' || pathname === '/git/') return { kind: 'index' }
if (pathname === '/tree' || pathname.startsWith('/tree/')) {
return { kind: 'tree', path: parseWebPath(pathname.slice('/tree'.length + 1)) }
}
@@ -268,7 +268,7 @@ async function runServer(root, identity, host, port, baseUrl, allowlist, pushOri
}).end(feedScript)
return
}
- if (pathname === '/feed') {
+ if (pathname === '/' || pathname === '/feed') {
try {
await serveFeed(root, query, response)
} catch (error) {
Git ยท Social feed