luci-app-ttyd: add new package
[oweals/luci.git] / applications / luci-app-ttyd / luasrc / controller / ttyd.lua
1 -- Licensed to the public under the Apache License 2.0.
2
3 module("luci.controller.ttyd", package.seeall)
4
5 function index()
6         if not nixio.fs.access("/etc/config/ttyd") then
7                 return
8         end
9
10         entry({"admin", "services", "ttyd"}, firstchild(), _("ttyd"))
11         entry({"admin", "services", "ttyd", "ttyd"}, view("ttyd/term"), _("Terminal"), 1)
12         entry({"admin", "services", "ttyd", "config"}, view("ttyd/config"), _("Config"), 2)
13 end