cleanup + small refract

- websockets
- event api
This commit is contained in:
cv
2021-04-11 19:17:54 +02:00
parent dee0ff1a5c
commit 964bdf0d2a
12 changed files with 145 additions and 149 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { serverURL } from './apiConstants';
export const eventsURL = serverURL + 'events/';
export const eventsURL = serverURL + 'events';
export const fetchAllEvents = async () => {
const res = await fetch(eventsURL + 'all');
const res = await fetch(eventsURL);
// TODO: Safe json convert
return res.json();
};