diff options
Diffstat (limited to 'applications/luci-app-noddos')
-rw-r--r-- | applications/luci-app-noddos/luasrc/controller/noddos.lua | 10 | ||||
-rw-r--r-- | applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json | 20 |
2 files changed, 20 insertions, 10 deletions
diff --git a/applications/luci-app-noddos/luasrc/controller/noddos.lua b/applications/luci-app-noddos/luasrc/controller/noddos.lua deleted file mode 100644 index c45e24bc97..0000000000 --- a/applications/luci-app-noddos/luasrc/controller/noddos.lua +++ /dev/null @@ -1,10 +0,0 @@ --- Copyright 2017 Steven Hessing (steven.hessing@gmail.com) --- This is free software, licensed under the GNU General Public License v3. --- /usr/lib/lua/luci/controller/noddos.lua - -module("luci.controller.noddos", package.seeall) -function index() - entry({"admin", "status", "noddos"}, template("noddos/clients"), _("Noddos Clients"), 3) - entry({"admin", "network", "noddos"}, cbi("noddos"), _("Noddos Client Tracking"), 55) -end - 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 } + } + } +} |