OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/javascripts/angular/services/status-service.js

26 lines
580 B

angular.module('openproject.services')
.service('StatusService', ['$http', 'PathHelper', function($http, PathHelper) {
var StatusService = {
getStatuses: function() {
var url = PathHelper.apiStatusesPath();
return StatusService.doQuery(url);
},
doQuery: function(url, params) {
return $http({
method: 'GET',
url: url,
params: params,
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
}).then(function(response){
return response.data;
});
}
};
return StatusService;
}]);