mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-07 05:36:59 -05:00
* update docs * use auto-gen routes * dumb deps * remove whitespace * github action to build dev docs container * no cache Co-authored-by: hay-kot <hay-kot@pm.me>
30 lines
716 B
JavaScript
30 lines
716 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.debugLog(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;
|
|
},
|
|
};
|