Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Guhapriya01 committed Apr 2, 2024
1 parent 2a5d819 commit 7b8cc08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/components/nav-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export default class NavBarComponent extends Component {
@service data;
@service userPreference;

// constructor(){
// super(...arguments);
// fetch('/libraries/1').then(r=>r.json()).then(d=>{
// console.log(d);
// });
constructor(){
super(...arguments);
fetch('/library').then(r=>r.json()).then(d=>{
console.log(d);
});

// }
}

get libraryReq() {
return this.data.libraryReq;
Expand Down
4 changes: 4 additions & 0 deletions mirage/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ function routes() {
this.get('books/:id');

this.passthrough('https://www.googleapis.com/books/v1/volumes');

// this.passthrough(request=>{
// console.log(request);
// })
}

0 comments on commit 7b8cc08

Please sign in to comment.