diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-10 09:04:39 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-16 18:07:18 +0100 |
commit | 870a4061208be34401875065c977b19933ceca92 (patch) | |
tree | 9dbde5348fe4771cac15265fc404262b09c2857f /applications/luci-app-opkg/root/usr/share | |
parent | c698cd5ab9ad9021ac7b92a45d7ba401cb3617d0 (diff) |
luci-app-opkg: convert menu entries to JSON
Also fix an empty string test in an controller action while we touch it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/root/usr/share')
-rw-r--r-- | applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json b/applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json new file mode 100644 index 0000000000..9356b586dd --- /dev/null +++ b/applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json @@ -0,0 +1,44 @@ +{ + "admin/system/opkg": { + "title": "Software", + "order": 30, + "action": { + "type": "template", + "path": "opkg" + } + }, + + "admin/system/opkg/list/*": { + "action": { + "type": "call", + "module": "luci.controller.opkg", + "function": "action_list" + } + }, + + "admin/system/opkg/exec/*": { + "action": { + "type": "call", + "post": true, + "module": "luci.controller.opkg", + "function": "action_exec" + } + }, + + "admin/system/opkg/statvfs/*": { + "action": { + "type": "call", + "module": "luci.controller.opkg", + "function": "action_statvfs" + } + }, + + "admin/system/opkg/config/*": { + "action": { + "type": "call", + "post": { "data": true }, + "module": "luci.controller.opkg", + "function": "action_config" + } + } +} |