sephrat 9d64345321
Fix about page (#563)
* Fix error 500 in about page

* Fix log details not showing
2021-06-18 04:50:51 -08:00

30 lines
719 B
JavaScript

import { apiReq } from "./api-utils";
import { API_ROUTES } from "./apiRoutes";
export const metaAPI = {
async getAppInfo() {
const response = await apiReq.get(API_ROUTES.debugVersion);
return response.data;
},
async getDebugInfo() {
const response = await apiReq.get(API_ROUTES.debug);
return response.data;
},
async getLogText(num) {
const response = await apiReq.get(API_ROUTES.debugLogNum(num));
return response.data;
},
async getLastJson() {
const response = await apiReq.get(API_ROUTES.debugLastRecipeJson);
return response.data;
},
async getStatistics() {
const response = await apiReq.get(API_ROUTES.debugStatistics);
return response.data;
},
};