mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-15 23:41:16 +00:00
feat: use proxy
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user