mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
feat: post info
This commit is contained in:
@@ -3,6 +3,11 @@ import { ontimeURL } from './apiConstants';
|
|||||||
|
|
||||||
export const ontimePlaceholderInfo = {
|
export const ontimePlaceholderInfo = {
|
||||||
networkInterfaces: [],
|
networkInterfaces: [],
|
||||||
|
version: '',
|
||||||
|
serverPort: 4001,
|
||||||
|
oscInPort: '',
|
||||||
|
oscOutPort: '',
|
||||||
|
oscOutIP: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getInfo = async () => {
|
export const getInfo = async () => {
|
||||||
@@ -10,6 +15,11 @@ export const getInfo = async () => {
|
|||||||
return res.data;
|
return res.data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const postInfo = async (data) => {
|
||||||
|
const res = await axios.post(ontimeURL + '/info', data);
|
||||||
|
return res;
|
||||||
|
};
|
||||||
|
|
||||||
export const downloadEvents = async () => {
|
export const downloadEvents = async () => {
|
||||||
await axios({
|
await axios({
|
||||||
url: ontimeURL + '/db',
|
url: ontimeURL + '/db',
|
||||||
|
|||||||
Reference in New Issue
Block a user