This commit is contained in:
2026-01-23 22:21:39 +07:00
parent 476c0eb647
commit 5ae0a15a30
15 changed files with 571 additions and 265 deletions

View File

@@ -10,7 +10,12 @@ export const customFetch = async (url: string, options: RequestInit) => {
Object.assign(options, {
headers: c.req.header()
});
console.log("url", url)
const res = await fetch(["https://api.pipic.fun", url.replace(/r\//, '')].join('/'), options);
if (url.includes("r/plans")) {
console.log("res", await res.json())
}
res.headers.forEach((value, key) => {
c.header(key, value);
});