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