1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 10:39:46 +02:00

improve OS API

This commit is contained in:
lxsang
2021-02-09 01:30:08 +01:00
parent 83288a00b0
commit d135587c3b
2 changed files with 14 additions and 3 deletions

View File

@ -183,7 +183,9 @@ function SystemController:apigateway(...)
print("Web socket is not available.")
end
else
if REQUEST.json then
if REQUEST.path then
exec_with_user_priv(REQUEST)
elseif REQUEST.json then
data = JSON.decodeString(REQUEST.json)
--std.json()
exec_with_user_priv(data)