fix: Update Mealie service component endpoints

This commit is contained in:
Bobby B 2023-11-15 19:55:12 -05:00 committed by Bastien Wirtz
parent c6571b48b4
commit 0e5106c42a

View File

@ -6,7 +6,7 @@
<template v-if="item.subtitle"> <template v-if="item.subtitle">
{{ item.subtitle }} {{ item.subtitle }}
</template> </template>
<template v-else-if="meal"> Today: {{ meal.name }} </template> <template v-else-if="meal"> Today: {{ meal[0].recipe.name }} </template>
<template v-else-if="stats"> <template v-else-if="stats">
happily keeping {{ stats.totalRecipes }} recipes organized happily keeping {{ stats.totalRecipes }} recipes organized
</template> </template>
@ -44,10 +44,10 @@ export default {
if (this.item.subtitle != null) return; if (this.item.subtitle != null) return;
this.meal = await this.fetch("/api/meal-plans/today/", { headers }).catch( this.meal = await this.fetch("/api/groups/mealplans/today", { headers }).catch(
(e) => console.log(e), (e) => console.log(e),
); );
this.stats = await this.fetch("/api/debug/statistics/", { this.stats = await this.fetch("/api/admin/about/statistics", {
headers, headers,
}).catch((e) => console.log(e)); }).catch((e) => console.log(e));
}, },