mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-11-07 08:44:00 +01:00
fix: Update Mealie service component endpoints
This commit is contained in:
parent
c6571b48b4
commit
0e5106c42a
@ -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));
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user