diff options
author | Eugene <eug-vs@keemail.me> | 2020-01-05 12:12:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-05 12:12:02 +0000 |
commit | e652fc1d4e171791c72de100ced0862a8b37d3d0 (patch) | |
tree | 4eb56d29f623e78f6b9d518825987de900d2f341 /src/requests.js | |
parent | 048f277ef7831b8f1a02c5e6590fb8087862b7fc (diff) | |
parent | 5919ca26792796c99bfac316a9dfca0b9257fe76 (diff) | |
download | chrono-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.js | 9 |
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 + ) +}; |