luci/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
Daniel Dickinson d83642c205 applications: uhttpd: Add a uHTTPd configuration app
uHTTPd has a lot of useful options that ought to be configurable
without have to SSH in, so expose those options in a UI page.
2015-12-15 13:09:46 -05:00

17 lines
382 B
Lua

-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.uhttpd.uhttpd", package.seeall)
function index()
if not nixio.fs.access("/etc/config/uhttpd") then
return
end
local page
page = entry({"admin", "services", "uhttpd"}, cbi("uhttpd/uhttpd"), _("uHTTPd"))
page.leaf = true
end