From 625abbfdbe94dada023ebd8ea69778173d1a7351 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 5 Feb 2020 16:51:19 +0100 Subject: treewide: convert simple Lua controllers to declarative JSON Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/luci/menu.d/luci-app-noddos.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json (limited to 'applications/luci-app-noddos/root/usr/share') diff --git a/applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json b/applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json new file mode 100644 index 0000000000..05052f5e04 --- /dev/null +++ b/applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json @@ -0,0 +1,20 @@ +{ + "admin/status/noddos": { + "title": "Noddos Clients", + "order": 3, + "action": { + "type": "template", + "path": "noddos/clients" + } + }, + + "admin/network/noddos": { + "title": "Noddos Client Tracking", + "order": 55, + "action": { + "type": "cbi", + "path": "noddos", + "post": { "cbi.submit": true } + } + } +} -- cgit v1.2.3