feat: post info

This commit is contained in:
cv
2021-10-27 22:51:52 +02:00
parent b2a1974a84
commit 6b5fb186cc
+10
View File
@@ -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',