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 --- .../luci-app-wireguard/luasrc/controller/wireguard.lua | 8 -------- .../root/usr/share/luci/menu.d/luci-app-wireguard.json | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 applications/luci-app-wireguard/luasrc/controller/wireguard.lua create mode 100644 applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json (limited to 'applications/luci-app-wireguard') diff --git a/applications/luci-app-wireguard/luasrc/controller/wireguard.lua b/applications/luci-app-wireguard/luasrc/controller/wireguard.lua deleted file mode 100644 index 5a9196097..000000000 --- a/applications/luci-app-wireguard/luasrc/controller/wireguard.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Copyright 2016-2017 Dan Luedtke --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.wireguard", package.seeall) - -function index() - entry({"admin", "status", "wireguard"}, template("wireguard"), _("WireGuard Status"), 92) -end diff --git a/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json b/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json new file mode 100644 index 000000000..0cb87f3e2 --- /dev/null +++ b/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json @@ -0,0 +1,10 @@ +{ + "admin/status/wireguard": { + "title": "WireGuard Status", + "order": 92, + "action": { + "type": "template", + "path": "wireguard" + } + } +} -- cgit v1.2.3