Implement luci.upnp ubus app. Convert lua page to js client side implementation. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
13 lines
363 B
Lua
13 lines
363 B
Lua
-- Copyright 2008 Steven Barth <steven@midlink.org>
|
|
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
module("luci.controller.upnp", package.seeall)
|
|
|
|
function index()
|
|
if not nixio.fs.access("/etc/config/upnpd") then
|
|
return
|
|
end
|
|
|
|
entry({"admin", "services", "upnp"}, view("upnp/upnp"), _("UPnP"))
|
|
end
|