feat: eventsAPI

This commit is contained in:
cv
2021-04-10 11:39:53 +02:00
parent e2561bcd54
commit e62b79f84e
13 changed files with 384 additions and 193 deletions
+8
View File
@@ -0,0 +1,8 @@
import { serverURL } from './apiConstants';
export const eventsURL = serverURL + 'events/';
export const fetchAllEvents = async () => {
const res = await fetch(eventsURL + 'all');
// TODO: Safe json convert
return res.json();
};