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 --- .../usr/share/luci/menu.d/luci-app-nextdns.json | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json (limited to 'applications/luci-app-nextdns/root/usr') diff --git a/applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json b/applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json new file mode 100644 index 0000000000..18255ced9c --- /dev/null +++ b/applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json @@ -0,0 +1,30 @@ +{ + "admin/services/nextdns": { + "title": "NextDNS", + "order": 60, + "action": { + "type": "firstchild" + }, + "depends": { + "uci": { "nextdns": true } + } + }, + + "admin/services/nextdns/overview": { + "title": "Overview", + "order": 1, + "action": { + "type": "view", + "path": "nextdns/overview" + } + }, + + "admin/services/nextdns/log": { + "title": "Configuration", + "order": 2, + "action": { + "type": "view", + "path": "nextdns/logread" + } + } +} -- cgit v1.2.3