Archived
removed old getEvents utility function
This commit is contained in:
1 parent
4ee3d0b39a
commit
4b1ecdf9a2
1 file changed
-8
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user