Chore: handle mealie API change (#3895)
Some checks failed
Docker / Linting Checks (push) Has been cancelled
Docs / Linting Checks (push) Has been cancelled
Docker / Docker Build & Push (push) Has been cancelled
Docs / Test Build (push) Has been cancelled
Docs / Build & Deploy (push) Has been cancelled

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
joncrangle
2024-08-25 00:02:47 -04:00
committed by GitHub
parent 8ff68dd6bf
commit b14374f660
4 changed files with 25 additions and 16 deletions

View File

@@ -1,8 +1,17 @@
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/api/groups/statistics",
api: "{url}/api/{endpoint}",
proxyHandler: credentialedProxyHandler,
mappings: {
statisticsv1: {
endpoint: "groups/statistics",
},
statisticsv2: {
endpoint: "households/statistics",
},
},
};
export default widget;