aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/main.js')
-rw-r--r--src/services/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/services/main.js b/src/services/main.js
new file mode 100644
index 0000000..198a3d4
--- /dev/null
+++ b/src/services/main.js
@@ -0,0 +1,8 @@
+import axios from 'axios';
+const baseURL = 'http://localhost:5001/api';
+export const get = async () => await axios.get(`${baseURL}/`);
+export const increment = async () => await axios.post(`${baseURL}/`);
+export default {
+ get,
+ increment,
+};