mirror of
https://github.com/onionltd/EndGame.git
synced 2024-10-01 04:15:36 -04:00
35 lines
616 B
Lua
35 lines
616 B
Lua
-- Copyright (C) Yichun Zhang (agentzh)
|
|
|
|
local subsystem = ngx.config.subsystem
|
|
|
|
|
|
require "resty.core.var"
|
|
require "resty.core.worker"
|
|
require "resty.core.regex"
|
|
require "resty.core.shdict"
|
|
require "resty.core.time"
|
|
require "resty.core.hash"
|
|
require "resty.core.uri"
|
|
require "resty.core.exit"
|
|
require "resty.core.base64"
|
|
|
|
|
|
if subsystem == 'http' then
|
|
require "resty.core.request"
|
|
require "resty.core.response"
|
|
require "resty.core.phase"
|
|
require "resty.core.ndk"
|
|
end
|
|
|
|
|
|
require "resty.core.misc"
|
|
require "resty.core.ctx"
|
|
|
|
|
|
local base = require "resty.core.base"
|
|
|
|
|
|
return {
|
|
version = base.version
|
|
}
|