1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00

fix gateway issues

This commit is contained in:
lxsang 2019-05-03 13:20:13 +02:00
parent 9e1dc0f3dd
commit 35bed8f797

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