mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 18:33:53 +00:00
38 lines
825 B
JavaScript
38 lines
825 B
JavaScript
import axios from 'axios';
|
|
import { playbackURL } from '../api/apiConstants';
|
|
|
|
export const getStart = async () => {
|
|
const res = await axios.get(playbackURL + '/start');
|
|
return res;
|
|
};
|
|
|
|
export const getPause = async () => {
|
|
const res = axios.get(playbackURL + '/pause');
|
|
return res;
|
|
};
|
|
|
|
export const getRoll = async () => {
|
|
const res = axios.get(playbackURL + '/roll');
|
|
return res;
|
|
};
|
|
|
|
export const getPrevious = async () => {
|
|
const res = axios.get(playbackURL + '/previous');
|
|
return res;
|
|
};
|
|
|
|
export const getNext = async () => {
|
|
const res = axios.get(playbackURL + '/next');
|
|
return res;
|
|
};
|
|
|
|
export const getUnload = async () => {
|
|
const res = axios.get(playbackURL + '/unload');
|
|
return res;
|
|
};
|
|
|
|
export const getReload = async () => {
|
|
const res = axios.get(playbackURL + '/reload');
|
|
return res;
|
|
};
|