Files
PyPost/lua/plugins/examples/demo/post.lua

8 lines
208 B
Lua

add_post_route("/lua/post", function(req)
local data = req.data or {}
log("Data received from " .. tostring(data))
return 200,
{["Content-Type"] = "application/text"},
tostring(data)
end)