luci/applications/luci-app-ttyd/luasrc/controller/ttyd.lua
Richard Yu 1c9a06ea2b
luci-app-ttyd: add new package
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-10-17 17:52:54 +08:00

13 lines
421 B
Lua

-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ttyd", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ttyd") then
return
end
entry({"admin", "services", "ttyd"}, firstchild(), _("ttyd"))
entry({"admin", "services", "ttyd", "ttyd"}, view("ttyd/term"), _("Terminal"), 1)
entry({"admin", "services", "ttyd", "config"}, view("ttyd/config"), _("Config"), 2)
end