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