diff --git a/client/src/app/api/ontimeApi.js b/client/src/app/api/ontimeApi.js index e23ab1e9d..d5fd4e568 100644 --- a/client/src/app/api/ontimeApi.js +++ b/client/src/app/api/ontimeApi.js @@ -3,6 +3,11 @@ import { ontimeURL } from './apiConstants'; export const ontimePlaceholderInfo = { networkInterfaces: [], + version: '', + serverPort: 4001, + oscInPort: '', + oscOutPort: '', + oscOutIP: '', }; export const getInfo = async () => { @@ -10,6 +15,11 @@ export const getInfo = async () => { return res.data; }; +export const postInfo = async (data) => { + const res = await axios.post(ontimeURL + '/info', data); + return res; +}; + export const downloadEvents = async () => { await axios({ url: ontimeURL + '/db',