mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-15 14:34:26 +00:00
14 lines
No EOL
286 B
JavaScript
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;
|
|
}
|
|
}
|
|
}); |