diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-03-01 20:21:14 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-03-01 20:21:14 +0100 |
commit | 9ae591b38fedf16c3e5c97350b7182c5e28ed71f (patch) | |
tree | 9995b63807ebb39a0fd92e0a17807e86cbb67bc8 /applications/luci-app-minidlna/root | |
parent | 0d68d0ad7bd2ab036caba973daa85864f8ec81a3 (diff) |
luci-app-minidlna: convert to client side rendering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-minidlna/root')
-rw-r--r-- | applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json | 12 | ||||
-rw-r--r-- | applications/luci-app-minidlna/root/usr/share/rpcd/acl.d/luci-app-minidlna.json | 19 |
2 files changed, 31 insertions, 0 deletions
diff --git a/applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json b/applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json new file mode 100644 index 000000000..ddb4129b4 --- /dev/null +++ b/applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json @@ -0,0 +1,12 @@ +{ + "admin/services/minidlna": { + "title": "miniDLNA", + "action": { + "type": "view", + "path": "minidlna" + }, + "depends": { + "uci": { "minidlna": true } + } + } +} diff --git a/applications/luci-app-minidlna/root/usr/share/rpcd/acl.d/luci-app-minidlna.json b/applications/luci-app-minidlna/root/usr/share/rpcd/acl.d/luci-app-minidlna.json new file mode 100644 index 000000000..a49d2f1e5 --- /dev/null +++ b/applications/luci-app-minidlna/root/usr/share/rpcd/acl.d/luci-app-minidlna.json @@ -0,0 +1,19 @@ +{ + "luci-app-minidlna": { + "description": "Grant access to minidlna status and configuration", + "read": { + "cgi-io": [ "exec" ], + "file": { + "/usr/bin/wget -q http://127.0.0.1:[0-9]*/ -O -": [ "exec" ] + }, + "uci": [ + "minidlna" + ] + }, + "write": { + "uci": [ + "minidlna" + ] + } + } +} |