diff options
Diffstat (limited to 'src/routes')
| -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()); |