admin: new route to get exercice stats

This commit is contained in:
nemunaire 2019-02-03 22:48:14 +01:00
commit ee2f65aae7
3 changed files with 57 additions and 0 deletions

View file

@ -1197,6 +1197,12 @@ angular.module("FICApp")
} else {
$scope.exercice = Exercice.get({ exerciceId: $routeParams.exerciceId });
}
$http({
url: "/api/exercices/" + $routeParams.exerciceId + "/stats",
method: "GET"
}).then(function(response) {
$scope.stats = response.data;
});
$http({
url: "/api/themes.json",
method: "GET"