mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
refract: playback api
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user