mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-10-02 20:25:45 +00:00
echo test function
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
local s = require("internal.session")
|
||||||
|
|
||||||
|
if not s.request.params.__fetched.data then
|
||||||
|
s.response.error = {
|
||||||
|
code = 123,
|
||||||
|
message = "params.data is missing"
|
||||||
|
}
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
s.response.send(s.request.params.__fetched)
|
||||||
Reference in New Issue
Block a user