File size: 387 Bytes
f228688
8967145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ngx.say("version: v1")
-- 定义一个模块表
local app_module = {}

app_module.a="a in app_v1.lua"
-- 定义一个函数
function app_module.some_function()
    ngx.say("This is some_function from app/v1/app.lua")
end

-- 定义另一个函数
function app_module.another_function()
    ngx.say("This is another_function from app/v1/app.lua")
end

-- 返回模块表
return app_module