init.lua 212 B

123456789
  1. 
  2. print("init fast web success!")
  3. -- 自定义模块演示
  4. local hello = hello.new()
  5. print("Custom Module: "..hello:name())
  6. -- 增加拦截器
  7. interceptor.add("/api/*.*","/api/lib/interceptor.lua")
  8. return true