Files
ontime/client/src/common/api/playbackApi.js
T
Carlos Valente 9b5d536378 Refact/project (#189)
* refactor: cleanup project entry point
* refactor: remove unused
* refactor: folder restructure
2022-08-03 23:20:23 +02:00

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`);