首次提交

This commit is contained in:
a158
2026-03-31 16:00:38 +08:00
parent b61b466f82
commit bcc8ee91cd
14 changed files with 889 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
-- 拦截器
local M = {}
M.module = fw_interceptor
--[[
FUNCTION 增加规则
PARAM
express : 规则
filepath : LUA脚本
--]]
function M.add(express,filepath)
M.module.add(express,filepath)
end
--[[
FUNCTION 是否存在拦截规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.exist(express)
return M.module.exist(express)
end
--[[
FUNCTION 移除拦截规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.remove(express)
return M.module.remove(express)
end
--[[
FUNCTION 清空拦截器
--]]
function M.clear(express)
return M.module.clear(express)
end
return M