Skip to content

Commit b008fe4

Browse files
committed
feat!: Update leaderboard route
1 parent 20a5798 commit b008fe4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

components/contracts/leaderboards.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,8 @@ export async function getLeaderboardEntries(
8787
const host = getFlag("leaderboardsHost") as string
8888

8989
const entries = (
90-
await axios.post<ApiLeaderboardEntry[]>(
91-
`${host}/leaderboards/entries/${contractId}`,
92-
{
93-
gameVersion,
94-
difficulty,
95-
platform,
96-
},
90+
await axios.get<ApiLeaderboardEntry[]>(
91+
`${host}/leaderboards/contracts/${contractId}/${gameVersion}/${platform}/${difficulty}/entries`,
9792
{
9893
headers: {
9994
"Peacock-Version": PEACOCKVERSTRING,

0 commit comments

Comments
 (0)