* new recipe summary route * add categories to cards * add pillow * show tags instead of categories * additional debug info * add todays meal image url * about page * fix reactive tag * changelog + docs * bump version Co-authored-by: hay-kot <hay-kot@pm.me>
34 lines
737 B
JavaScript
34 lines
737 B
JavaScript
import { baseURL } from "./api-utils";
|
|
import { apiReq } from "./api-utils";
|
|
|
|
const prefix = baseURL + "debug";
|
|
|
|
const debugURLs = {
|
|
version: `${prefix}/version`,
|
|
debug: `${prefix}`,
|
|
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 getDebugInfo() {
|
|
const response = await apiReq.get(debugURLs.debug);
|
|
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;
|
|
},
|
|
};
|