aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/requests.ts (renamed from src/requests.js)6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/requests.js b/src/requests.ts
index ad45dcf..eeb2ee7 100644
--- a/src/requests.js
+++ b/src/requests.ts
@@ -3,20 +3,20 @@ import axios from 'axios'
const baseUrl = 'https://eugvs.pythonanywhere.com/';
const baseApiUrl = baseUrl + 'api/';
-export const get = (url) => {
+export const get = (url: string) => {
return axios.get(
baseApiUrl + url,
);
};
-export const post = (url, data) => {
+export const post = (url: string, data: object) => {
return axios.post(
baseApiUrl + url,
data
);
};
-export const del = (url, data) => {
+export const del = (url: string, data: object) => {
return axios.delete(
baseApiUrl + url,
data