newsnow/server/utils/proxy.ts

4 lines
104 B
TypeScript
Raw Normal View History

2024-10-31 14:21:11 +08:00
export function proxyPicture(url: string) {
return `/api/proxy/img.png?url=${encodeBase64URL(url)}`
}