Leaderboard pages added and routing sorted

This commit is contained in:
piratefinn 2017-11-10 17:15:11 +00:00
parent f5239a3822
commit 8a5236ad3a
8 changed files with 216 additions and 5 deletions

View file

@ -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() );
}