mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-04 06:58:02 +00:00
15 lines
500 B
JavaScript
15 lines
500 B
JavaScript
export const NODE_PORT = 4001;
|
|
export const EVENT_TABLE = 'event';
|
|
export const EVENTS_TABLE = 'events';
|
|
export const APP_TABLE = 'appinfo';
|
|
|
|
const calculateServer = () => {
|
|
return window.location.origin.replace(window.location.port, `${NODE_PORT}/`);
|
|
};
|
|
|
|
export const serverURL = calculateServer();
|
|
export const eventURL = serverURL + EVENT_TABLE;
|
|
export const eventsURL = serverURL + EVENTS_TABLE;
|
|
export const playbackURL = serverURL + 'playback';
|
|
export const ontimeURL = serverURL + 'ontime';
|