Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model: function(){
return card.consumers.authenticatedGithubApi.getRepositories();
}
});
findByRepositoryNameAndGithubLogin: function(repositoryName, githubLogin) {
return card.consumers.authenticatedGithubApi.request("ajax", {
url: '/repos/' + repositoryName + '/issues?creator=' + githubLogin,
dataType: 'json'
});
},
findAllByRepositoryName: function(repositoryName) {
var service;
if (card.data.user) {
service = card.consumers.authenticatedGithubApi;
} else {
service = card.consumers.unauthenticatedGithubApi;
}
return service.request("ajax", {
url: '/repos/' + repositoryName + '/issues',
dataType: 'json'
});
},
getApiConsumer: function(user){
return user ? card.consumers.authenticatedGithubApi : card.consumers.unauthenticatedGithubApi;
},
findByRepositoryName: function(repositoryName, user) {