Add ranking to /interfaces/games/last

This commit is contained in:
Ruben 2016-11-03 02:32:32 +01:00
parent cce341b8de
commit 93ddb4a216
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
$output = [
'id' => $game->getId(),
'level' => $game->getLevel()->getName(),
'ranking' => $gameRepo->getPositionForGame($game),
'score' => $game->getScore(),
'achievements' => $game->getAchievements()->count(),
'time' => $game->getCreatedAt()->format("Y-m-d H:i:s"),