aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-11 09:06:40 -0800
committerFuwn <[email protected]>2024-01-11 09:06:40 -0800
commitf28c9ad38d2102b589903f138ea03f03ca5507e9 (patch)
treed1388200e606ed2f23677e600a0491cc2296a11d /src/routes
parentfeat(layout): page animations (diff)
downloaddue.moe-f28c9ad38d2102b589903f138ea03f03ca5507e9.tar.xz
due.moe-f28c9ad38d2102b589903f138ea03f03ca5507e9.zip
refactor(routes): move shortcuts to hooks
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/birthdays/+server.ts12
-rw-r--r--src/routes/wrapped/+server.ts11
2 files changed, 0 insertions, 23 deletions
diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts
deleted file mode 100644
index e20d6c8a..00000000
--- a/src/routes/birthdays/+server.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import root from '$lib/Utility/root.js';
-
-export const GET = ({ url }) => {
- return Response.redirect(
- root(
- `/tools/birthdays${
- url.searchParams.toString().length > 0 ? `?${url.searchParams.toString()}` : ''
- }`
- ),
- 307
- );
-};
diff --git a/src/routes/wrapped/+server.ts b/src/routes/wrapped/+server.ts
deleted file mode 100644
index e9c8c8d2..00000000
--- a/src/routes/wrapped/+server.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import root from '$lib/Utility/root.js';
-
-export const GET = ({ url }) =>
- Response.redirect(
- root(
- `/tools/wrapped${
- url.searchParams.toString().length > 0 ? `&${url.searchParams.toString()}` : ''
- }`
- ),
- 307
- );