removed old getEvents utility function

This commit is contained in:
mmacierzanka committed 2021-10-03 16:03:57 +02:00
1 parent 4ee3d0b39a
commit 4b1ecdf9a2
1 file changed
-8
-8
View File
@@ -1,8 +0,0 @@
import axios from "axios";
import { BACKEND_URL } from "../../constants";
export const getEvents = async () => {
const rq = await axios.get(`${BACKEND_URL}/api/getEvents`);
if (rq.status !== 200) throw new Error(`Request failed with code ${rq.status}: ${rq.statusText}`);
return rq.data;
};