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/router.lua

10 lines
221 B
Lua
Raw Normal View History

2018-09-19 15:08:49 +02:00
local handle = function(p)
local hstr = p:match("^%a+/")
if hstr == "fs/" then
--print("require module")
require("fs.fsh")(p:gsub(hstr,"",1))
else
fail("Resource not found for request "..p)
end
end
return handle