admin: new route to get exercice stats
This commit is contained in:
parent
c2887a1812
commit
ee2f65aae7
3 changed files with 57 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Reference in a new issue