mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-28 18:38:20 +01:00
15 lines
285 B
Lua
15 lines
285 B
Lua
local handler
|
|
|
|
handler = function(str)
|
|
local func = str:match("^%a+/")
|
|
if func == "get/" then
|
|
require("fs.get")(str:gsub(func,""))
|
|
elseif func == "shared/" then
|
|
require("fs.shared").get(str:gsub(func,""))
|
|
else
|
|
fail("Action is not supported: "..func)
|
|
end
|
|
end
|
|
|
|
return handler
|