debug: add API URL logging to axios request interceptor
This commit is contained in:
@@ -154,6 +154,7 @@ function notifyBackendUnavailable(message: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apiClient.interceptors.request.use((config) => {
|
apiClient.interceptors.request.use((config) => {
|
||||||
|
console.log("[API DEBUG]", config.method?.toUpperCase(), config.baseURL, config.url, "→", config.baseURL + config.url);
|
||||||
const token = localStorage.getItem("live-recorder-token");
|
const token = localStorage.getItem("live-recorder-token");
|
||||||
if (token) {
|
if (token) {
|
||||||
config.headers.Authorization = `Bearer ${token}`;
|
config.headers.Authorization = `Bearer ${token}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user