mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-13 04:22:09 +08:00
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:
14
src/widgets/unifi/widget.js
Normal file
14
src/widgets/unifi/widget.js
Normal 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;
|
||||
Reference in New Issue
Block a user