Common:API: change url for oauth2

This commit is contained in:
Timofey Boyko 2023-10-20 10:01:28 +03:00
parent bba1e34a09
commit f5c2bd64db

View File

@ -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);