aboutsummaryrefslogtreecommitdiff
path: root/src/requests.ts
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-05-04 12:52:25 +0300
committereug-vs <eugene@eug-vs.xyz>2022-05-04 12:52:25 +0300
commitf35c1cf5480f7506442ac4c9170c5e0a1a4a8b15 (patch)
tree94fa0fa38e8a90df08933c05910bea6bed461291 /src/requests.ts
parent8dc803f882f31430abb600fba250fdcf3334d9bf (diff)
downloadchrono-cube-ui-f35c1cf5480f7506442ac4c9170c5e0a1a4a8b15.tar.gz
feat: remove material UI and useless functionality
Diffstat (limited to 'src/requests.ts')
-rw-r--r--src/requests.ts11
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);
-