From f35c1cf5480f7506442ac4c9170c5e0a1a4a8b15 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 4 May 2022 12:52:25 +0300 Subject: feat: remove material UI and useless functionality --- src/requests.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/requests.ts (limited to 'src/requests.ts') 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 => axios.get(baseApiUrl + url); - -export const del = (url: string): Promise => axios.delete(baseApiUrl + url); - -export const post = (url: string, data: object): Promise => axios.post(baseApiUrl + url, data); - -- cgit v1.2.3