summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-upnp/root/usr/share
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2020-01-07 19:31:04 +0100
committerAnsuel Smith <ansuelsmth@gmail.com>2020-01-08 21:45:31 +0100
commitcfa70932c3b80c116144fc95ecb93dd7ffed4366 (patch)
treefb0086cc87549f6111e35afb6b5caa987fa13e1c /applications/luci-app-upnp/root/usr/share
parent55dcc8ab5c60334becd783e1c01f8de8ae3a9977 (diff)
luci-app-upnp: convert to client side implementation
Implement luci.upnp ubus app. Convert lua page to js client side implementation. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-upnp/root/usr/share')
-rw-r--r--applications/luci-app-upnp/root/usr/share/rpcd/acl.d/luci-app-upnp.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-upnp/root/usr/share/rpcd/acl.d/luci-app-upnp.json b/applications/luci-app-upnp/root/usr/share/rpcd/acl.d/luci-app-upnp.json
new file mode 100644
index 0000000000..b01ffb2007
--- /dev/null
+++ b/applications/luci-app-upnp/root/usr/share/rpcd/acl.d/luci-app-upnp.json
@@ -0,0 +1,17 @@
+{
+ "luci-app-ddns": {
+ "description": "Grant access to upnp procedures",
+ "read": {
+ "ubus": {
+ "luci.upnp": [ "get_status" ],
+ "luci": [ "setInitAction" ]
+ }
+ },
+ "write": {
+ "ubus": {
+ "luci.upnp": [ "delete_rule" ]
+ },
+ "uci": [ "upnpd" ]
+ }
+ }
+}