From e56e442d6af125522214a9bc9ab957ac39c5c0c8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Apr 2020 22:25:48 +0200 Subject: luci-base: implement JSON endpoint to fetch menu information Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/share/luci/menu.d/luci-base.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/luci-base/root/usr/share') 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 2490823a16..daad2f633a 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": {} } } -- cgit v1.2.3