add missing parts

This commit is contained in:
martin-mfg
2025-06-27 08:37:36 +00:00
parent c43fec45e9
commit f010c7c523
2 changed files with 11 additions and 5 deletions
@@ -24,6 +24,7 @@ export default async (req, res) => {
switch (url.pathname) {
case "/api":
case "/api/":
api(req, res);
break;
case "/api/gist":
@@ -38,18 +39,18 @@ export default async (req, res) => {
case "/api/wakatime":
wakatime(req, res);
break;
case "/api-rewrite/repeat-recent":
case "/api/repeat-recent":
repeatRecent(req, res);
break;
case "/api-rewrite/status/pat-info":
case "/api/status/pat-info":
patInfo(req, res);
break;
case "/api-rewrite/status/up":
case "/api/status/up":
statusUp(req, res);
break;
default:
res.statusCode = 200;
res.end("(fake) Found");
res.statusCode = 404;
res.end("Not Found");
break;
}
};
@@ -0,0 +1,5 @@
{
"expiration": 5,
"bypassToken": "r3fr3shT0k3n-r3fr3shT0k3n-r3fr3shT0k3n",
"passQuery": true
}