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:
parent
9e1dc0f3dd
commit
35bed8f797
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user