From 9f5f2c6e473c57104f6a099e7dea9c156848984d Mon Sep 17 00:00:00 2001 From: nyne Date: Sat, 22 Nov 2025 21:42:38 +0800 Subject: [PATCH] feat: use proxy --- frontend/src/network/kun.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/network/kun.ts b/frontend/src/network/kun.ts index 761277e..cc4ad88 100644 --- a/frontend/src/network/kun.ts +++ b/frontend/src/network/kun.ts @@ -16,8 +16,10 @@ const KunApi = { return status === 200 || status === 404; // Accept only 200 and 404 responses }, }); + const uri = `https://www.moyu.moe/api/hikari?vndb_id=${id}`; + const uriBase64 = btoa(uri); const res = await client.get( - `https://www.moyu.moe/api/hikari?vndb_id=${id}`, + `/api/proxy?uri=${uriBase64}`, ); if (res.status === 404) { return {