Leaderboard pages added and routing sorted
This commit is contained in:
parent
f5239a3822
commit
8a5236ad3a
8 changed files with 216 additions and 5 deletions
|
@ -253,13 +253,16 @@ export class ApiService {
|
|||
|
||||
// Leaderboard Api
|
||||
|
||||
public leaderboard_fetch(data) {
|
||||
public leaderboard_fetch(
|
||||
type: string,
|
||||
page: number) {
|
||||
const key = this.sessionKey;
|
||||
return this.http.post(
|
||||
this.apiUrl + '/stats/leaderboard',
|
||||
this.apiUrl + '/stats/leaderboard/paged',
|
||||
{
|
||||
session_key : key,
|
||||
type : data
|
||||
type : type,
|
||||
page: page,
|
||||
}
|
||||
).map( response => response.json() );
|
||||
}
|
||||
|
|
Reference in a new issue