Skip to content

Commit 548bc2e

Browse files
committed
Update
1 parent acfcc87 commit 548bc2e

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

app/components/nav-bar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class NavBarComponent extends Component {
99

1010
// constructor(){
1111
// super(...arguments);
12-
// fetch('/libraries/4/books').then(r=>r.json()).then(d=>{
12+
// fetch('/libraries/1').then(r=>r.json()).then(d=>{
1313
// console.log(d);
1414
// });
1515

mirage/serializers/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { RestSerializer } from 'miragejs';
1+
import { RestSerializer } from 'miragejs';
22

33
export default RestSerializer.extend({});

mirage/serializers/library.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import ApplicationSerializer from './application';
22

33
export default ApplicationSerializer.extend({
4-
// include: ['books'],
5-
6-
// serialize(library, request) {
7-
// // console.log(library);
8-
// let data = {
9-
// data: {
10-
// id: library.id,
11-
// location: library.location,
12-
// name: library.name,
13-
// timing: library.timing
14-
// }
15-
// }
16-
// return data;
17-
// }
184
});
5+
6+
// attrs:['id,']
7+
// include: ['books'],
8+
9+
// serialize(library, request) {
10+
// // console.log(library);
11+
// let data = {
12+
// data: {
13+
// id: library.id,
14+
// location: library.location,
15+
// name: library.name,
16+
// timing: library.timing
17+
// }
18+
// }
19+
// return data;
20+
// }

0 commit comments

Comments
 (0)