GetLeaderboard

Function: GetLeaderboard()

function GetLeaderboard(period): Promise<Response<object[]>>

Defined in: src/actions/leaderboard.tsx:16

Fetches the leaderboard for a specified period from the backend.

Parameters

period

The period for which to fetch the leaderboard.

endDate

string = ...

id

string = ...

name

string = ...

startDate

string = ...

Returns

Promise<Response<object[]>>
  • A promise that resolves to a response object containing the leaderboard data or an error message.