diff options
Diffstat (limited to 'src/requests.js')
-rw-r--r-- | src/requests.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/requests.js b/src/requests.js deleted file mode 100644 index ad45dcf..0000000 --- a/src/requests.js +++ /dev/null @@ -1,24 +0,0 @@ -import axios from 'axios' - -const baseUrl = 'https://eugvs.pythonanywhere.com/'; -const baseApiUrl = baseUrl + 'api/'; - -export const get = (url) => { - return axios.get( - baseApiUrl + url, - ); -}; - -export const post = (url, data) => { - return axios.post( - baseApiUrl + url, - data - ); -}; - -export const del = (url, data) => { - return axios.delete( - baseApiUrl + url, - data - ) -}; |