diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-15 22:25:48 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-16 13:30:35 +0200 |
commit | e56e442d6af125522214a9bc9ab957ac39c5c0c8 (patch) | |
tree | 3e4485339f1136a677334131847aabcd611ae33b /modules/luci-base/root | |
parent | 51186355ea168dfc6fb1363ace5c57b178f0331e (diff) |
luci-base: implement JSON endpoint to fetch menu information
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root')
-rw-r--r-- | modules/luci-base/root/usr/share/luci/menu.d/luci-base.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json b/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json index 2490823a1..daad2f633 100644 --- a/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json +++ b/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json @@ -136,5 +136,14 @@ "function": "action_confirm" }, "auth": {} + }, + + "admin/menu": { + "action": { + "type": "call", + "module": "luci.controller.admin.index", + "function": "action_menu" + }, + "auth": {} } } |