Refactor unifi proxy for udm-pro compatibility

This commit is contained in:
Michael Shamoon
2022-10-07 23:26:16 -07:00
parent ac4dcd3222
commit ad1d1e751d
2 changed files with 37 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import unifiProxyHandler from "./proxy";
const widget = {
api: "{url}{prefix}/api/{endpoint}",
api: "https://{host}:{port}{prefix}/api/{endpoint}",
proxyHandler: unifiProxyHandler,
mappings: {