From 58beb10b78eaad7450b7556eb929cf31a19c6176 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 2 Dec 2023 16:20:11 -0800 Subject: fix(wrapped): proxy images --- src/routes/api/proxy/+server.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/routes/api/proxy/+server.ts (limited to 'src/routes/api') 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()); -- cgit v1.2.3