mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 15:33:59 +00:00
9b5d536378
* refactor: cleanup project entry point * refactor: remove unused * refactor: folder restructure
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
import axios from 'axios';
|
|
|
|
import { playbackURL } from './apiConstants';
|
|
|
|
/**
|
|
* @description HTTP call to start current timer
|
|
* @return {Promise}
|
|
*/
|
|
export const getStart = async () => axios.get(`${playbackURL}/start`);
|
|
|
|
/**
|
|
* @description HTTP call to pause current timer
|
|
* @return {Promise}
|
|
*/
|
|
export const getPause = async () => axios.get(`${playbackURL}/pause`);
|
|
|
|
/**
|
|
* @description HTTP call to start roll mode
|
|
* @return {Promise}
|
|
*/
|
|
export const getRoll = async () => axios.get(`${playbackURL}/roll`);
|
|
|
|
/**
|
|
* @description HTTP call to skip to previous event
|
|
* @return {Promise}
|
|
*/
|
|
export const getPrevious = async () => axios.get(`${playbackURL}/previous`);
|
|
|
|
/**
|
|
* @description HTTP call to skip to next event
|
|
* @return {Promise}
|
|
*/
|
|
export const getNext = async () => axios.get(`${playbackURL}/next`);
|
|
|
|
/**
|
|
* @description HTTP call to unload current timer
|
|
* @return {Promise}
|
|
*/
|
|
export const getUnload = async () => axios.get(`${playbackURL}/unload`);
|
|
|
|
/**
|
|
* @description HTTP call to reload current timer
|
|
* @return {Promise}
|
|
*/
|
|
export const getReload = async () => axios.get(`${playbackURL}/reload`);
|