summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ttyd/luasrc/controller/ttyd.lua
blob: 5a7344d84605f365ec1f5ca79bde5389ee88c433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- 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