mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
[dev] log api requests in dev
This commit is contained in:
parent
e2402b0d87
commit
2e4cddccf6
@ -69,6 +69,10 @@ export abstract class ApiBase {
|
|||||||
"Content-Type": config.headers?.["Content-Type"] ?? "application/json",
|
"Content-Type": config.headers?.["Content-Type"] ?? "application/json",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
console.log(`Sending ${config.method ?? "GET"} request to: `, this.base + path, config);
|
||||||
|
}
|
||||||
|
|
||||||
return await fetch(this.base + path, config);
|
return await fetch(this.base + path, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user