aboutsummaryrefslogtreecommitdiff
path: root/src/requests.js
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-01-05 03:13:24 +0300
committerEug-VS <eug-vs@keemail.me>2020-01-05 03:14:46 +0300
commitdd622def55c52255493c467e2be2f8e3473a1256 (patch)
tree3419507e0b66bf46d728795dcbbd91b49607eacb /src/requests.js
parent321674f2710910f87893b4d0e65e67b77d1ebaa4 (diff)
downloadchrono-cube-ui-dd622def55c52255493c467e2be2f8e3473a1256.tar.gz
Add DELETE as menu option to SolutionCard
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
+ )
+};