mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-05 12:46:23 -05:00
30 lines
719 B
JavaScript
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;
|
|
},
|
|
};
|