set static url

This commit is contained in:
Alihaghighattalab
2024-08-13 12:13:41 +03:30
parent f3b37a5d4a
commit 25b09cf7b1
+2 -2
View File
@@ -1,9 +1,9 @@
import axios, { AxiosRequestConfig } from "axios";
const axiosParam: AxiosRequestConfig = {
baseURL: process.env.REACT_APP_API_Address,
baseURL: "https://asan-service.com/api/",
headers: {
Authorization: `Bearer ${window.localStorage.getItem("token")}`,
Authorization: `Bearer ${window.localStorage.getItem("token") && window.localStorage.getItem("token")}`,
}
}