diff --git a/com/Echo.lua b/com/Echo.lua new file mode 100644 index 0000000..684c228 --- /dev/null +++ b/com/Echo.lua @@ -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) \ No newline at end of file