debug: add API URL logging to axios request interceptor

This commit is contained in:
2026-06-05 11:13:18 +08:00
parent f9016931e8
commit 9e5bbbb948
+1
View File
@@ -154,6 +154,7 @@ function notifyBackendUnavailable(message: string) {
}
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");
if (token) {
config.headers.Authorization = `Bearer ${token}`;