aboutsummaryrefslogtreecommitdiff
path: root/src/requests.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/requests.js')
-rw-r--r--src/requests.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/requests.js b/src/requests.js
index 91eaf65..caa19e8 100644
--- a/src/requests.js
+++ b/src/requests.js
@@ -9,9 +9,16 @@ export const get = (url) => {
);
};
-export const post = (url, data) => {
+export const post = (url, data) => {
return axios.post(
baseApiUrl + url,
data
);
};
+
+export const del = (url, data) => {
+ return axios.delete(
+ baseApiUrl + url,
+ data
+ )
+};