Something went wrong. Try again.
A rhythm game leaderboard server that can't EOS. tsunagite.dev
Something went wrong. Try again.
123456789101112131415161718192021222324collection = "dev.tsunagite.chart"
function handle() local did = nil if params.owner then local resp = http.get("https://slingshot.microcosm.blue/xrpc/blue.microcosm.identity.resolveMiniDoc?identifier=" .. params.owner) did = json.decode(resp.body).did end
local res = db.query({ collection = collection, did = did, limit = params.limit, cursor = params.cursor, filter = { combine = "AND", { field = "game", value = params.game }, { field = "song", value = params.song }, } })
return {["charts"] = res.records, ["cursor"] = res.cursor}end