Fix: handle immich v1.85.0 API stats breaking change (#2284)
parent
885a4051f3
commit
7719ea17be
@ -1,8 +1,20 @@
|
|||||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||||
|
|
||||||
const widget = {
|
const widget = {
|
||||||
api: "{url}/api/server-info/stats",
|
api: "{url}/api/server-info/{endpoint}",
|
||||||
proxyHandler: credentialedProxyHandler,
|
proxyHandler: credentialedProxyHandler,
|
||||||
|
|
||||||
|
mappings: {
|
||||||
|
version: {
|
||||||
|
endpoint: "version",
|
||||||
|
},
|
||||||
|
statistics: {
|
||||||
|
endpoint: "statistics",
|
||||||
|
},
|
||||||
|
stats: {
|
||||||
|
endpoint: "stats",
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default widget;
|
export default widget;
|
||||||
|
Loading…
Reference in new issue