mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
19 lines
337 B
Lua
19 lines
337 B
Lua
local util = {}
|
|
|
|
function util.pass(method, url, message: string)
|
|
local response = net.request({
|
|
method = method,
|
|
url = url,
|
|
})
|
|
assert(response.ok, message)
|
|
end
|
|
|
|
function util.fail(method, url, message: string)
|
|
local response = net.request({
|
|
method = method,
|
|
url = url,
|
|
})
|
|
assert(not response.ok, message)
|
|
end
|
|
|
|
return util
|