From d0bd9d27843fb18e970aac0c12592afedc6c025a Mon Sep 17 00:00:00 2001 From: MineGame159 Date: Mon, 30 Sep 2024 10:36:13 +0200 Subject: [PATCH] Redirect /download to /api/download --- src/routes/download/+server.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/routes/download/+server.ts diff --git a/src/routes/download/+server.ts b/src/routes/download/+server.ts new file mode 100644 index 0000000..e917d39 --- /dev/null +++ b/src/routes/download/+server.ts @@ -0,0 +1,5 @@ +import { redirect } from "@sveltejs/kit"; + +export async function GET({ url }) { + throw redirect(301, "https://meteorclient.com/api/download" + url.search); +} \ No newline at end of file