Remove node-unifi package dependency

- Add custom Unifi proxy built on existing cookie jar and httpProxy
- Change formatApiCall to emit empty string instead of undefined on missing key
This commit is contained in:
Jason Fischer committed 2022-10-07 17:12:29 -07:00
1 parent 952f0295cc
commit ac4dcd3222
8 files changed
+148 -163

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import unifiProxyHandler from "./proxy";
const widget = {
api: "{url}{prefix}/api/{endpoint}",
proxyHandler: unifiProxyHandler,
mappings: {
"stat/sites": {
endpoint: "stat/sites",
},
}
};
export default widget;