mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-27 09:58:20 +01:00
14 lines
308 B
Lua
14 lines
308 B
Lua
package.path = _SERVER["LIB_DIR"].."/lua/?.lua"
|
|
require("silk.api")
|
|
|
|
local args = {}
|
|
local argv = {}
|
|
local fn, e = loadscript(__ROOT__.."/layout.ls", args)
|
|
if fn then
|
|
local r,o = pcall(fn, table.unpack(argv))
|
|
if not r then
|
|
std.error(500, o)
|
|
end
|
|
else
|
|
std.error(500, e)
|
|
end |