mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-06 21:26:31 -05:00
27 lines
601 B
JavaScript
27 lines
601 B
JavaScript
import { baseURL } from "./api-utils";
|
|
import { apiReq } from "./api-utils";
|
|
|
|
const prefix = baseURL + "debug";
|
|
|
|
const debugURLs = {
|
|
version: `${prefix}/version`,
|
|
lastRecipe: `${prefix}/last-recipe-json`,
|
|
demo: `${prefix}/is-demo`,
|
|
};
|
|
|
|
export const metaAPI = {
|
|
async getAppInfo() {
|
|
let response = await apiReq.get(debugURLs.version);
|
|
return response.data;
|
|
},
|
|
async getLastJson() {
|
|
let response = await apiReq.get(debugURLs.lastRecipe);
|
|
return response.data;
|
|
},
|
|
|
|
async getIsDemo() {
|
|
let response = await apiReq.get(debugURLs.demo);
|
|
return response.data;
|
|
},
|
|
};
|