set static url
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import axios, { AxiosRequestConfig } from "axios";
|
import axios, { AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
const axiosParam: AxiosRequestConfig = {
|
const axiosParam: AxiosRequestConfig = {
|
||||||
baseURL: process.env.REACT_APP_API_Address,
|
baseURL: "https://asan-service.com/api/",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${window.localStorage.getItem("token")}`,
|
Authorization: `Bearer ${window.localStorage.getItem("token") && window.localStorage.getItem("token")}`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user