Hi I have been using the GITHUB API for practices purposes only and I came across with the API endpoint with this URL URL: https://api.github.com/users/mojombo/repos
On my ember app, I would like to show all the repos of a selected github user.
My approach was
On my route.js
let parentModel = this.modelFor('dashboard.users.repos');
return this.store.query('repo', {
filter: {
'username': parentModel.get('login') //mojombo
}
})
However, I am getting a 404
not found
Can someone would share their ideas on what is the approach for the above’s scenario? Thanks in advance
Aucun commentaire:
Enregistrer un commentaire