refract: playback api

This commit is contained in:
cv
2021-04-10 11:38:32 +02:00
parent d289a5b918
commit e2561bcd54
2 changed files with 40 additions and 14 deletions
+27
View File
@@ -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;
};