Files
PyPost/lua/plugins/demo/hello.lua
2025-10-05 19:52:43 +02:00

7 lines
347 B
Lua

-- hello.lua
add_route("/lua/hello", function(req)
log("hello.lua handling request for " .. (req.path or "unknown"))
-- return (status, headers_table, body_string)
return 200, {["Content-Type"] = "text/html"}, "<h1 style='text-align:center;'>Hello from Lua plugin!</h1><br /><p>Why is this here?<br/>To test the Lua plugin manager</p>"
end)