Chore: handle mealie API change (#3895)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>pull/3898/head^2
parent
8ff68dd6bf
commit
b14374f660
@ -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;
|
||||
|
Loading…
Reference in new issue