mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-22 07:29:08 +00:00
refactor: extract axios utility
This commit is contained in:
committed by
Carlos Valente
parent
269091986a
commit
cff73a65a5
@@ -0,0 +1,5 @@
|
|||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
|
axios.defaults.validateStatus = (status) => {
|
||||||
|
return (status >= 200 && status < 300) || status === 304;
|
||||||
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
import axios from 'axios';
|
|
||||||
|
|
||||||
import { serverURL } from '../../externals';
|
import { serverURL } from '../../externals';
|
||||||
|
|
||||||
// keys in tanstack store
|
// keys in tanstack store
|
||||||
@@ -25,7 +23,3 @@ const cssOverridePath = 'styles/override.css';
|
|||||||
|
|
||||||
export const overrideStylesURL = `${serverURL}/${userAssetsPath}/${cssOverridePath}`;
|
export const overrideStylesURL = `${serverURL}/${userAssetsPath}/${cssOverridePath}`;
|
||||||
export const projectLogoPath = `${serverURL}/${userAssetsPath}/logo`;
|
export const projectLogoPath = `${serverURL}/${userAssetsPath}/logo`;
|
||||||
|
|
||||||
axios.defaults.validateStatus = (status) => {
|
|
||||||
return (status >= 200 && status < 300) || status === 304;
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user