Reimplements the recents feature

This commit is contained in:
2016-02-11 18:51:05 +01:00
parent ca9dd50429
commit df62e82922
8 changed files with 90 additions and 44 deletions

20
webapp/js/services.js Normal file
View File

@@ -0,0 +1,20 @@
var services = angular.module('satbd.satellite.bar.services',[])
services.factory('albumService',['$http','$log','$q', function($http,$log,$q) {
function get(id) {
return $http.get('/api/albums/'+ id).then(function (response) {
return response.data;
});
}
function search(terms) {
var defer = $q.defer();
defer.reject('Search is not implemented');
return defer.promise;
}
return {
get: get,
search: search
};
}]);