local json = require("json");
local coro = require("coro-http")
local link = "https://neko-love.xyz/api/v1/"..type
local result, body = coro.request("GET", link)
body = json.parse(body) -- Return Body
return body["url"] -- Return the image link
nekoGET("neko") -- The desired endpoint is added in parameter