mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
cleanup + small refract
- websockets - event api
This commit is contained in:
@@ -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();
|
||||
};
|
||||
Reference in New Issue
Block a user