From 6b5fb186cceed71a152059eae39fdd9b508049a3 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Wed, 27 Oct 2021 22:51:52 +0200 Subject: [PATCH] feat: post info --- client/src/app/api/ontimeApi.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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',