aproxy/main.lua

18 lines
303 B
Lua
Raw Normal View History

2022-12-06 03:36:15 +00:00
-- function loadConfig()
-- -- TODO load config_path
-- return require("./config.lua")
-- end
--
-- local config = loadConfig()
2022-12-06 18:53:20 +00:00
local ctx = require('ctx')
2022-12-07 17:57:07 +00:00
local config = require('config')
require('util')
2022-12-06 18:54:16 +00:00
2022-12-07 17:57:07 +00:00
ctx:loadFromConfig(config.loadConfigFile())
2022-12-06 03:36:15 +00:00
2022-12-06 18:54:16 +00:00
return function()
ctx:onRequest()
end