Files
ontime/client/src/app/api/playbackApi.js
T
2021-04-10 11:38:32 +02:00

28 lines
621 B
JavaScript

import { serverURL } from './apiConstants';
const playbackURL = serverURL + 'playback/';
export const getStart = async () => {
const res = await fetch(playbackURL + 'start');
return res;
};
export const getPause = async () => {
const res = await fetch(playbackURL + 'pause');
return res;
};
export const getRoll = async () => {
const res = await fetch(playbackURL + 'roll');
return res;
};
export const getPrevious = async () => {
const res = await fetch(playbackURL + 'previous');
return res;
};
export const getNext = async () => {
const res = await fetch(playbackURL + 'next');
return res;
};