moved the files around added demo examples and fixed a bunch of stuff!

This commit is contained in:
2025-10-01 21:07:28 +02:00
parent f1bda77ce2
commit 6580d5c4bc
10 changed files with 410 additions and 308 deletions

View File

@@ -0,0 +1,4 @@
add_route("/lua/test", function (req)
log("demo_route handling request for =>" .. (req.path or "unknown"))
return 200, {["Content-Type"] = "text/html"}, "<h1>Hello!</h1>"
end)

View File

@@ -1,6 +0,0 @@
-- 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>Hello from Lua plugin!</h1>"
end)