admin: Use gin-gonic as router
This commit is contained in:
parent
83468ad723
commit
8b3fbdb64a
32 changed files with 2785 additions and 1635 deletions
|
@ -300,7 +300,7 @@ angular.module("FICApp")
|
|||
return $resource("api/exercices/:exerciceId/history.json", { exerciceId: '@id' })
|
||||
})
|
||||
.factory("ExercicesStats", function($resource) {
|
||||
return $resource("api/themes/:themeId/exercices_stats.json", { themeId: '@id' })
|
||||
return $resource("api/exercices_stats.json", { themeId: '@id' })
|
||||
})
|
||||
.factory("ExerciceStats", function($resource) {
|
||||
return $resource("api/exercices/:exerciceId/stats.json", { exerciceId: '@id' })
|
||||
|
@ -1653,7 +1653,7 @@ angular.module("FICApp")
|
|||
})
|
||||
|
||||
.controller("ExercicesStatsController", function($scope, ExercicesStats) {
|
||||
$scope.exercices = ExercicesStats.query({ themeId: $scope.theme.id });
|
||||
$scope.exercices = ExercicesStats.query();
|
||||
})
|
||||
|
||||
.controller("ExerciceStatsController", function($scope, ExerciceStats, $routeParams) {
|
||||
|
|
Reference in a new issue