Refact/project (#189)

* refactor: cleanup project entry point
* refactor: remove unused
* refactor: folder restructure
This commit is contained in:
Carlos Valente
2022-08-03 23:20:23 +02:00
committed by GitHub
parent 05be0c1e95
commit 9b5d536378
116 changed files with 352 additions and 942 deletions
+18
View File
@@ -0,0 +1,18 @@
import axios from 'axios';
import { eventURL } from './apiConstants';
/**
* @description HTTP request to fetch event data
* @return {Promise}
*/
export const fetchEvent = async () => {
const res = await axios.get(eventURL);
return res.data;
};
/**
* @description HTTP request to mutate event data
* @return {Promise}
*/
export const postEvent = async (data) => axios.post(eventURL, data);