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:
@ -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)
|
||||
|
Reference in New Issue
Block a user