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/priority-service.js

21 lines
515 B

angular.module('openproject.services')
.service('PriorityService', ['$http', 'PathHelper', function($http, PathHelper) {
var PriorityService = {
getPriorities: function() {
var url = PathHelper.apiPrioritiesPath();
return PriorityService.doQuery(url);
},
doQuery: function(url, params) {
return $http.get(url, { params: params })
.then(function(response){
return response.data.planning_element_priorities;
});
}
};
return PriorityService;
}]);