diff options
| author | Fuwn <[email protected]> | 2024-01-11 09:06:40 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-11 09:06:40 -0800 |
| commit | f28c9ad38d2102b589903f138ea03f03ca5507e9 (patch) | |
| tree | d1388200e606ed2f23677e600a0491cc2296a11d /src/routes | |
| parent | feat(layout): page animations (diff) | |
| download | due.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.ts | 12 | ||||
| -rw-r--r-- | src/routes/wrapped/+server.ts | 11 |
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 - ); |