Added external embeds

This commit is contained in:
Xodrium 2023-02-12 16:18:59 -05:00
parent 5972139552
commit 516a054c31
6 changed files with 70 additions and 16 deletions

View file

@ -0,0 +1,11 @@
/** @type {import('./$types').RequestHandler} */
export async function GET({ url, fetch }) {
const urlParam = url.searchParams.get('url');
const output = await fetch(urlParam);
return new Response(await output.blob(), {'headers': {
'Content-Type': output.headers.get("Content-Type")
}});
}