Stats
This commit is contained in:
parent
35929ced49
commit
1d88ea42aa
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class StatsControllerProvider implements ControllerProviderInterface
|
||||||
{
|
{
|
||||||
// creates a new controller based on the default route
|
// creates a new controller based on the default route
|
||||||
$controllers = $app['controllers_factory'];
|
$controllers = $app['controllers_factory'];
|
||||||
$gamesRepo = $this->_eh->getEm()->getRepository(Models\Game::class);
|
$gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class);
|
||||||
|
|
||||||
$controllers->get('/', function (Application $app) {
|
$controllers->get('/', function (Application $app) {
|
||||||
$stats = [
|
$stats = [
|
||||||
|
@ -38,7 +38,7 @@ class StatsControllerProvider implements ControllerProviderInterface
|
||||||
}
|
}
|
||||||
return $app['serializer']->serialize($stats, 'json');
|
return $app['serializer']->serialize($stats, 'json');
|
||||||
});
|
});
|
||||||
|
|
||||||
return $controllers;
|
return $controllers;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue