summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-uhttpd/luasrc/controller
diff options
context:
space:
mode:
authorDaniel Dickinson <openwrt@daniel.thecshore.com>2015-12-02 00:25:30 -0500
committerDaniel Dickinson <openwrt@daniel.thecshore.com>2015-12-15 13:09:46 -0500
commitd83642c20519692c5d3883e23d01bb84a48dd85a (patch)
tree4eddfd64c6892ce81263cd1bf425f6469e28b88b /applications/luci-app-uhttpd/luasrc/controller
parent6509e007e29f438d74b01eb6e23a09f02775dd6c (diff)
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.
Diffstat (limited to 'applications/luci-app-uhttpd/luasrc/controller')
-rw-r--r--applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua b/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
new file mode 100644
index 000000000..2e80dd63b
--- /dev/null
+++ b/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
@@ -0,0 +1,17 @@
+-- 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
+