wiki update

This commit is contained in:
k
2026-09-21 11:38:19 +02:00
parent 56628fa103
commit d05dad2e48
6 changed files with 40 additions and 2 deletions
+5
View File
@@ -133,6 +133,11 @@ const server = Bun.serve({
});
}
// --- public: /wiki redirects to the remote docs wiki (git forge) ---
if ((path === "/wiki" || path === "/wiki/") && req.method === "GET") {
return Response.redirect(config.wikiUrl, 302);
}
// --- auth: login (rate limited) ---
if (path === "/api/auth/login" && req.method === "POST") {
const ip = clientIp(req, server);