mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
12 lines
224 B
Text
12 lines
224 B
Text
local net = require("@lune/net")
|
|
|
|
local counter = 0
|
|
net.serve(8080, function()
|
|
counter += 1
|
|
return {
|
|
status = 200,
|
|
body = "Hello! This is response #" .. tostring(counter),
|
|
}
|
|
end)
|
|
|
|
print("Listening on port 8080 🚀")
|