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