19 lines
383 B
Lua
19 lines
383 B
Lua
local utils = require("utils")
|
|
local route = {
|
|
http_server = nil,
|
|
ecs_server = nil,
|
|
}
|
|
|
|
local index_root = {
|
|
pattern = "/index%.html[.+]?$",
|
|
func = function(matches, stream, headers, body)
|
|
local index = utils.loaddata(base_www_path.."index.html")
|
|
return route.http_server.html(index)
|
|
end,
|
|
}
|
|
|
|
route.routes = {
|
|
index_root,
|
|
}
|
|
|
|
return route |