правка некорректных запросов
This commit is contained in:
@@ -4,8 +4,8 @@ const host = "tracker.kayashov.keenetic.pro";
|
||||
|
||||
export const radarr = () => {
|
||||
const res = axios;
|
||||
// res.defaults.baseURL = `${window.location.protocol}//${host}/radarr/`;
|
||||
res.defaults.baseURL = `${window.location.protocol}//${host}/`;
|
||||
// res.defaults.baseURL = `http://192.168.1.100:30011/`;
|
||||
res.defaults.baseURL = `${window.location.protocol}//${host}/radarr/`;
|
||||
res.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
res.defaults.headers.common['X-Api-Key'] = process.env.REACT_APP_RADARR_API_KEY;
|
||||
res.defaults.headers.common['Accept'] = 'application/json';
|
||||
@@ -15,6 +15,7 @@ export const radarr = () => {
|
||||
export const sonarr = () => {
|
||||
const res = axios;
|
||||
res.defaults.baseURL = `${window.location.protocol}//${host}/sonarr/`;
|
||||
// res.defaults.baseURL = `http://192.168.1.100:30009/`;
|
||||
res.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
res.defaults.headers.common['X-Api-Key'] = process.env.REACT_APP_SONARR_API_KEY;
|
||||
res.defaults.headers.common['Accept'] = 'application/json';
|
||||
|
||||
Reference in New Issue
Block a user