echo test function

This commit is contained in:
2025-08-09 10:41:13 +03:00
parent b451f2d3fc
commit 811403a0a2

11
com/Echo.lua Normal file
View File

@@ -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)