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