aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/api/proxy')
-rw-r--r--src/routes/api/proxy/+server.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/api/proxy/+server.ts b/src/routes/api/proxy/+server.ts
new file mode 100644
index 00000000..1c4a25dc
--- /dev/null
+++ b/src/routes/api/proxy/+server.ts
@@ -0,0 +1,2 @@
+export const GET = async ({ url }) =>
+ new Response(await (await fetch(url.searchParams.get('url') as string)).blob());