diff options
| author | Fuwn <[email protected]> | 2023-12-02 16:20:11 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-02 16:20:11 -0800 |
| commit | 58beb10b78eaad7450b7556eb929cf31a19c6176 (patch) | |
| tree | ec32445e72ead768dcd4619138c4baca0315e761 /src/routes/api/proxy | |
| parent | fix(wrapped): use secure http (diff) | |
| download | due.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.ts | 2 |
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()); |