-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.lua
42 lines (36 loc) · 977 Bytes
/
urls.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---------------
-- ## URL mappings.
--
-- [Github Page](https://github.com/fhirschmann/vocontrol)
--
-- @author Fabian Hirschmann <[email protected]>
-- @copyright 2013
-- @license MIT/X11
urls = {}
urls["/"] = dofile("views/vocontrol.lua")
urls["/pull/"] = dofile("views/pull.lua")
urls["/push/"] = dofile("views/push.lua")
local css = {
"bootstrap.min.css",
"bootstrap-responsive.css",
"darkstrap.css",
"jquery-ui-1.10.0.custom.min.css",
"style.css",
}
local js = {
"jquery-1.9.1.min.js",
"underscore.min.js",
"bootstrap.min.js",
"jquery.strings.js",
"jquery.jsonrpc.js",
"jquery.inputHistory.min.js",
"jquery-ui-1.10.0.custom.min.js",
"vocontrol.js",
}
for _, f in ipairs(js) do
urls["/media/js/"..f] = vocontrol.http.dispatch.StaticFile:new("media/js/"..f..".lua")
end
for _, f in ipairs(css) do
urls["/media/css/"..f] = vocontrol.http.dispatch.StaticFile:new("media/css/"..f..".lua")
end
return urls