16 lines
266 B
Lua
16 lines
266 B
Lua
|
|
-- function loadConfig()
|
|
-- -- TODO load config_path
|
|
-- return require("./config.lua")
|
|
-- end
|
|
--
|
|
-- local config = loadConfig()
|
|
|
|
local ctx = require('ctx')
|
|
local conf = require('config')
|
|
|
|
ctx:loadFromConfig(conf)
|
|
|
|
return function()
|
|
ctx:onRequest()
|
|
end
|