immortalwrt/package/lean/luci-app-haproxy-tcp/luasrc/controller/haproxy.lua
msylgj d61bb995c4
treewide: add ACL dependency annotations to legacy controllers
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-21 14:48:55 +08:00

9 lines
325 B
Lua

module("luci.controller.haproxy", package.seeall)
function index()
if not nixio.fs.access("/etc/config/haproxy") then
return
end
local page = entry({"admin", "services", "haproxy"}, cbi("haproxy"), _("HAProxy"))
page.dependent = true
page.acl_depends = { "luci-app-haproxy-tcp" }
end