mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
Refact/project (#189)
* refactor: cleanup project entry point * refactor: remove unused * refactor: folder restructure
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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`);
|
||||
Reference in New Issue
Block a user