fixed Lua Runtime. Plugins now have priority for hooks and POST for routes if requested. also changed the CSS for main.css to color #1e1e1e for darkmode body
This commit is contained in:
6
lua/plugins/examples/demo/hello.lua
Normal file
6
lua/plugins/examples/demo/hello.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
-- 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)
|
||||
Reference in New Issue
Block a user