aboutsummaryrefslogtreecommitdiff
path: root/src/requests.js
diff options
context:
space:
mode:
authorEugene <eug-vs@keemail.me>2020-01-05 12:12:02 +0000
committerGitHub <noreply@github.com>2020-01-05 12:12:02 +0000
commite652fc1d4e171791c72de100ced0862a8b37d3d0 (patch)
tree4eb56d29f623e78f6b9d518825987de900d2f341 /src/requests.js
parent048f277ef7831b8f1a02c5e6590fb8087862b7fc (diff)
parent5919ca26792796c99bfac316a9dfca0b9257fe76 (diff)
downloadchrono-cube-ui-e652fc1d4e171791c72de100ced0862a8b37d3d0.tar.gz
Merge pull request #23 from Eug-VS/solution-card
Isolate and improve 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
+ )
+};