Expected Identifier which pointed to the line $http.delete of the following controller
function DogsCtrl($scope, $route, $http){
$scope.deleteDog = function (dogId){
$http.delete('/rest/dogs/' + dogId).
success(function(data, status, headers, config) {
$route.reload();
}).
error(function(data, status, headers, config) {
$scope.$emit('error', status);
});
};
}
I don't know if their is a link between the two errors
2/ Yes It is reachable
3/ Correct. LoginCtrl is defined as followed :
function LoginCtrl($scope, $http, $location){
$scope.authenticate = function() {
$http.get('/rest/login').
success(function(data, status, headers, config) {
$scope.$emit('event:userAuthenticated', data);
if(data.userRole == 'Citoyen'){
$location.path("/citizen/dashboard");
} else if (data.userRole == 'Fonctionnaire'){
$location.path("/functionnary/dashboard");
}
}).
error(function(data, status, headers, config) {
$scope.$emit('error', status);
});
}
}