aboutsummaryrefslogtreecommitdiff
path: root/src/worker.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-18 20:22:00 -0800
committerFuwn <[email protected]>2024-11-18 20:26:35 -0800
commite384732c7b8066cd8b96b2c20c01c491890ce397 (patch)
tree89d4c48b10f37663fd18041c0fb485b71fab5e5f /src/worker.ts
parentdocs(readme): create readme (diff)
downloadanilist.me-main.tar.xz
anilist.me-main.zip
refactor: convert to vercel deployment applicationHEADmain
Diffstat (limited to 'src/worker.ts')
-rw-r--r--src/worker.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/worker.ts b/src/worker.ts
deleted file mode 100644
index eb9655c..0000000
--- a/src/worker.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Router, error } from 'itty-router';
-
-const router = Router();
-
-router
- .get('/', () => new Response('intp.moe/:username'))
- .get('/:username', (request) => Response.redirect(`https://anilist.co/user/${request.params.username}/`, 301))
- .all('*', () => error(404));
-
-export default {
- fetch: (request: Request) => router.handle(request).catch(error),
-};