aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/proxy
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-02 16:20:11 -0800
committerFuwn <[email protected]>2023-12-02 16:20:11 -0800
commit58beb10b78eaad7450b7556eb929cf31a19c6176 (patch)
treeec32445e72ead768dcd4619138c4baca0315e761 /src/routes/api/proxy
parentfix(wrapped): use secure http (diff)
downloaddue.moe-58beb10b78eaad7450b7556eb929cf31a19c6176.tar.xz
due.moe-58beb10b78eaad7450b7556eb929cf31a19c6176.zip
fix(wrapped): proxy images
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());