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";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/server-info/stats",
|
||||
api: "{url}/api/server-info/{endpoint}",
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
version: {
|
||||
endpoint: "version",
|
||||
},
|
||||
statistics: {
|
||||
endpoint: "statistics",
|
||||
},
|
||||
stats: {
|
||||
endpoint: "stats",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
||||
|
Loading…
Reference in new issue