Skip to main content

fetch_leaderboard

Function fetch_leaderboard 

Source
pub fn fetch_leaderboard() -> Result<Value, String>
Expand description

Fetch the public community leaderboard as JSON ({ "entries": [ … ] }).

Public, login-less endpoint (GET /api/leaderboard, contract: docs/contracts/wrapped-permalink-v1.md). The dashboard proxies it same-origin (#466) so the browser never reaches api.leanctx.com directly — the dashboard CSP pins connect-src to 'self'. A 10s global timeout keeps a slow upstream from tying up a dashboard request thread.