search/
Start typing to search packages!
package_2
ro-express
By @hawdevelopment
Roblox
MirroredRo-Express
Expressjs like Networking module that makes it easier to write and organise code.
Read the documentation for more info.
Ro-Express allows you to register methods to a path, and then attaching middleware to paths. It helps clear up complex structures to nice trees of remotes. When requesting data you get a status back to easily check what when right and wrong.
local express = require(game:GetService("ReplicatedStorage").express)
local app = express()
-- Registering a GET method
app:get("/GetHugs", function(request, response)
response:status(200):send("Hugs 🤗")
end)
-- Attaching middleware to the GET method
app:use("/GetHugs", function(request, response)
local name = request.Player.Name
if not (name == "Sleitnick" or name == "Elttob") then
-- Lock the response if not authorized
response:status(401):done()
end
end)
app:Listen("Hugs")
When Requesting data it will return a nice table with all your needs.
local express = require(game:GetService("ReplicatedStorage").express)
local Return = express.Request("Hugs://GetHugs", "GET")
-- (If you are cool)
print(Return) -> {
Succes = true,
Status = 200,
Body = "Hugs 🤗"
}
Package Details
Install command (Click to copy)
Version
1.0.1
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
