This commit is contained in:
I-Have-An-Issue 2022-10-16 00:45:51 -04:00
parent ed62edcc50
commit a5ed648e69
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
2 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,6 @@ import joinscript from "$lib/joinscript.js";
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}` }
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}&version=1` }
});
}

View File

@ -0,0 +1,9 @@
import joinscript from "$lib/joinscript.js";
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}&version=1` }
});
}