File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default class NavBarComponent extends Component {
9
9
10
10
// constructor(){
11
11
// super(...arguments);
12
- // fetch('/libraries/4/books ').then(r=>r.json()).then(d=>{
12
+ // fetch('/libraries/1 ').then(r=>r.json()).then(d=>{
13
13
// console.log(d);
14
14
// });
15
15
Original file line number Diff line number Diff line change 1
- import { RestSerializer } from 'miragejs' ;
1
+ import { RestSerializer } from 'miragejs' ;
2
2
3
3
export default RestSerializer . extend ( { } ) ;
Original file line number Diff line number Diff line change 1
1
import ApplicationSerializer from './application' ;
2
2
3
3
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
- // }
18
4
} ) ;
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
+ // }
You can’t perform that action at this time.
0 commit comments