1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00
This commit is contained in:
lxsang 2019-05-07 14:35:18 +02:00
commit b0f3f2f6f7

View File

@ -125,7 +125,8 @@ function SystemController:apigateway(...)
echo(e)
end
elseif data.path then
r, e = loadfile(data.path)
local ospath = require("vfs").ospath(data.path)
r, e = loadfile(ospath)
if r then
local status, result = pcall(r, data.parameters)
if (status) then