mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
feat: eventsAPI
This commit is contained in:
@@ -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();
|
||||
};
|
||||
Reference in New Issue
Block a user