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:
7
lua/plugins/examples/post.lua
Normal file
7
lua/plugins/examples/post.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user