woodpecker/server/app/scripts/services/conf.js
2014-09-30 00:43:50 -07:00

14 lines
No EOL
286 B
JavaScript

'use strict';
angular.module('app').service('confService', function($q, $http) {
return{
getConfig : function() {
var defer = $q.defer();
var route = '/api/config';
$http.get(route).success(function(data){
defer.resolve(data);
});
return defer.promise;
}
}
});