1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-28 18:38:20 +01:00
antd-lua-plugin/example-app/os/fs/fsh.lua
2018-09-19 15:08:49 +02:00

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