Fix: handle immich v1.85.0 API stats breaking change (#2284)

This commit is contained in:
shamoon
2023-11-07 23:59:43 -08:00
committed by GitHub
parent 885a4051f3
commit 7719ea17be
2 changed files with 19 additions and 4 deletions

View File

@@ -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;