1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-18 08:26:45 +02:00
woodpecker/server/app/scripts/services/conf.js

14 lines
286 B
JavaScript
Raw Normal View History

'use strict';
angular.module('app').service('confService', function($q, $http) {
return{
getConfig : function() {
var defer = $q.defer();
2014-09-30 10:43:50 +03:00
var route = '/api/config';
$http.get(route).success(function(data){
defer.resolve(data);
});
return defer.promise;
}
}
});