summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua
blob: 1204667892f2b10207f2d117f278bdf0be71489b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Initialize LuCI
function initialize()
	pcall(function()
		require "luci.dispatcher"
		require "luci.uvl"
		require "luci.cbi"
		require "luci.template"
		require "luci.json"
	end)
end

-- Register luci
function register()
	local lucihnd = require "luci.ttpd.handler.luci".Luci()
	httpd.server:get_default_vhost():set_handler("/luci", lucihnd)
	httpd.server:get_default_vhost():set_handler("/cgi-bin/luci", lucihnd)
end