Files
homepage/src/widgets/mealie/widget.js
joncrangle b14374f660
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
Chore: handle mealie API change (#3895)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-24 21:02:47 -07:00

18 lines
344 B
JavaScript

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