blob: eeb2ee7818fda5a5eaf46b5bf85e7f12108e76bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import axios from 'axios'
const baseUrl = 'https://eugvs.pythonanywhere.com/';
const baseApiUrl = baseUrl + 'api/';
export const get = (url: string) => {
return axios.get(
baseApiUrl + url,
);
};
export const post = (url: string, data: object) => {
return axios.post(
baseApiUrl + url,
data
);
};
export const del = (url: string, data: object) => {
return axios.delete(
baseApiUrl + url,
data
)
};
|