Common:API: change url for oauth2
This commit is contained in:
parent
bba1e34a09
commit
f5c2bd64db
@ -14,12 +14,10 @@ import {
|
|||||||
} from "../../utils/oauth/interfaces";
|
} from "../../utils/oauth/interfaces";
|
||||||
|
|
||||||
const axiosConfig: AxiosRequestConfig = {
|
const axiosConfig: AxiosRequestConfig = {
|
||||||
baseURL: "/api",
|
baseURL: "/api/2.0",
|
||||||
responseType: "json",
|
responseType: "json",
|
||||||
timeout: 0,
|
timeout: 0,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
// TODO: OAuth, remove X-Tenant into API
|
|
||||||
headers: { "X-API-Version": "1", "X-Tenant": "1" },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const client = axios.create(axiosConfig);
|
const client = axios.create(axiosConfig);
|
||||||
|
Loading…
Reference in New Issue
Block a user