mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-04-21 19:06:44 +02:00
Compare commits
No commits in common. "ce05d671668c9616eadbbdc3e155076a243c3130" and "e66336fe563e152bbd737133936a346c42c73bec" have entirely different histories.
ce05d67166
...
e66336fe56
4
Makefile
4
Makefile
@ -5,8 +5,8 @@ main: copy
|
||||
for f in $(PROJS); do BUILDDIR=$(BUILDDIR)/"$${f}" make -C "$${f}" ; done
|
||||
|
||||
copy:
|
||||
cp -rfv $(copyfiles) $(BUILDDIR)
|
||||
cp -rv silk $(BUILDDIR)
|
||||
cp -rf $(copyfiles) $(BUILDDIR)
|
||||
cp -r silk $(BUILDDIR)
|
||||
|
||||
ar:
|
||||
-[ -d /tmp/antd_web_apps ] && rm -r /tmp/antd_web_apps
|
||||
|
@ -98,7 +98,6 @@ function SystemController:application(...)
|
||||
end
|
||||
|
||||
function SystemController:apigateway(...)
|
||||
local args={...}
|
||||
local use_ws = false
|
||||
if REQUEST and REQUEST.ws == "1" then
|
||||
-- override the global echo command
|
||||
@ -190,15 +189,8 @@ function SystemController:apigateway(...)
|
||||
exec_with_user_priv(REQUEST)
|
||||
elseif REQUEST.json then
|
||||
data = JSON.decodeString(REQUEST.json)
|
||||
--std.json()
|
||||
exec_with_user_priv(data)
|
||||
elseif args and #args > 0 then
|
||||
local decoded = std.b64decode(args[1])
|
||||
data = JSON.decodeString(bytes.__tostring(decoded))
|
||||
if data and data.path then
|
||||
exec_with_user_priv(data)
|
||||
else
|
||||
fail("Unknown request")
|
||||
end
|
||||
else
|
||||
fail("Unkown request")
|
||||
end
|
||||
|
@ -35,8 +35,6 @@ function is_auth()
|
||||
-- should be used only by API call
|
||||
elseif REQUEST.sessionid and REQUEST.sessionid ~= '0' then
|
||||
sessionid = REQUEST.sessionid
|
||||
elseif REQUEST.access_token and REQUEST.access_token ~= '0' then
|
||||
sessionid = REQUEST.access_token
|
||||
end
|
||||
if sessionid == nil then
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user