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