network info

This commit is contained in:
cv
2021-06-13 14:17:55 +02:00
parent f066e974e6
commit 17ddfb535f
7 changed files with 112 additions and 2 deletions
+9
View File
@@ -1,6 +1,15 @@
import axios from 'axios';
import { ontimeURL } from './apiConstants';
export const ontimePlaceholderInfo = {
networkInterfaces: [],
};
export const getInfo = async () => {
const res = await axios.get(ontimeURL + '/info');
return res.data;
};
export const downloadEvents = async () => {
await axios({
url: ontimeURL + '/db',