feat: proxy APIs

This commit is contained in:
TrèsAbhi committed 2023-11-11 21:37:59 -06:00
1 parent 7e4f195f94
commit 14bfc3018b
14 files changed
+130 -60

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
import { context } from './context';
export function withCORSProxy(url: string) {
return context === 'website'
? `https://corsproxy.io/?${encodeURIComponent(url)}`
: url;
}