diff --git a/_dot_vercel_copy/output/functions/api.func/router.js b/_dot_vercel_copy/output/functions/api.func/router.js index 0fa0f5ae..3c23451d 100644 --- a/_dot_vercel_copy/output/functions/api.func/router.js +++ b/_dot_vercel_copy/output/functions/api.func/router.js @@ -1,5 +1,11 @@ +import { default as api } from "./api/index.js"; import { default as gist } from "./api/gist.js"; import { default as pin } from "./api/pin.js"; +import { default as topLangs } from "./api/top-langs.js"; +import { default as wakatime } from "./api/wakatime.js"; +import { default as repeatRecent } from "./api/repeat-recent.js"; +import { default as patInfo } from "./api/pat-info.js"; +import { default as statusUp } from "./api/status/up.js"; export default async (req, res) => { // remaining code expects express.js-like request and response objects @@ -19,12 +25,30 @@ export default async (req, res) => { req.query = Object.fromEntries(url.searchParams.entries()); switch (url.pathname) { - case "/gist": + case "/api": + api(req, res); + break; + case "/api/gist": gist(req, res); break; - case "/pin": + case "/api/pin": pin(req, res); break; + case "/api/top-langs": + topLangs(req, res); + break; + case "/api/wakatime": + wakatime(req, res); + break; + case "/api/repeat-recent": + repeatRecent(req, res); + break; + case "/api/pat-info": + patInfo(req, res); + break; + case "/api/status/up": + statusUp(req, res); + break; default: res.statusCode = 404; res.end("Not Found"); diff --git a/_dot_vercel_copy/output/functions/api/gist.func b/_dot_vercel_copy/output/functions/api/gist.func new file mode 120000 index 00000000..2cda57e5 --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/gist.func @@ -0,0 +1 @@ +../api.func/ \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/gist.prerender-config.json b/_dot_vercel_copy/output/functions/api/gist.prerender-config.json similarity index 100% rename from _dot_vercel_copy/output/functions/gist.prerender-config.json rename to _dot_vercel_copy/output/functions/api/gist.prerender-config.json diff --git a/_dot_vercel_copy/output/functions/api/pin.func b/_dot_vercel_copy/output/functions/api/pin.func new file mode 120000 index 00000000..2cda57e5 --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/pin.func @@ -0,0 +1 @@ +../api.func/ \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/pin.prerender-config.json b/_dot_vercel_copy/output/functions/api/pin.prerender-config.json similarity index 100% rename from _dot_vercel_copy/output/functions/pin.prerender-config.json rename to _dot_vercel_copy/output/functions/api/pin.prerender-config.json diff --git a/_dot_vercel_copy/output/functions/api/top-langs.func b/_dot_vercel_copy/output/functions/api/top-langs.func new file mode 120000 index 00000000..2cda57e5 --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/top-langs.func @@ -0,0 +1 @@ +../api.func/ \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/api/top-langs.prerender-config.json b/_dot_vercel_copy/output/functions/api/top-langs.prerender-config.json new file mode 100644 index 00000000..bea81b9c --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/top-langs.prerender-config.json @@ -0,0 +1,5 @@ +{ + "expiration": 5, + "bypassToken": "r3fr3shT0k3n-r3fr3shT0k3n-r3fr3shT0k3n", + "passQuery": true +} \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/api/wakatime.func b/_dot_vercel_copy/output/functions/api/wakatime.func new file mode 120000 index 00000000..2cda57e5 --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/wakatime.func @@ -0,0 +1 @@ +../api.func/ \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/api/wakatime.prerender-config.json b/_dot_vercel_copy/output/functions/api/wakatime.prerender-config.json new file mode 100644 index 00000000..bea81b9c --- /dev/null +++ b/_dot_vercel_copy/output/functions/api/wakatime.prerender-config.json @@ -0,0 +1,5 @@ +{ + "expiration": 5, + "bypassToken": "r3fr3shT0k3n-r3fr3shT0k3n-r3fr3shT0k3n", + "passQuery": true +} \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/gist.func b/_dot_vercel_copy/output/functions/gist.func deleted file mode 120000 index 3b9c9be4..00000000 --- a/_dot_vercel_copy/output/functions/gist.func +++ /dev/null @@ -1 +0,0 @@ -api.func \ No newline at end of file diff --git a/_dot_vercel_copy/output/functions/pin.func b/_dot_vercel_copy/output/functions/pin.func deleted file mode 120000 index 3b9c9be4..00000000 --- a/_dot_vercel_copy/output/functions/pin.func +++ /dev/null @@ -1 +0,0 @@ -api.func \ No newline at end of file