mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-29 10:48:21 +01:00
12 lines
236 B
Lua
12 lines
236 B
Lua
|
auth_or_die("User unauthorized. Please login")
|
||
|
|
||
|
local rq = (JSON.decodeString(REQUEST.query.json))
|
||
|
|
||
|
if rq ~= nil then
|
||
|
local r,m = require("fs.vfs").mkdir(rq.path)
|
||
|
if r then result(r) else fail(m) end
|
||
|
else
|
||
|
fail("Uknown request")
|
||
|
end
|
||
|
|