15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
export default class ActivityService {
|
|
constructor($http) {
|
|
this.$http = $http;
|
|
}
|
|
|
|
findAllWatchedRepos(user) {
|
|
return this.$http.get(`https://api.github.com/users/${user}/subscriptions`)
|
|
.then(function (response) {
|
|
return response.data;
|
|
});
|
|
}
|
|
}
|
|
|
|
ActivityService.$inject = ['$http'];
|