changeset 307 | 07b44a378ad8 |
child 319 | 78990a8a069b |
306:3fccf43160a7 | 307:07b44a378ad8 |
---|---|
1 import { JSONAPISerializer } from 'ember-cli-mirage'; |
|
2 |
|
3 import _ from 'lodash/lodash'; |
|
4 |
|
5 export default JSONAPISerializer.extend({ |
|
6 serialize(response) { |
|
7 return _(response.models).map((dateinfo) => { return [dateinfo.id, dateinfo.count];}).object().value(); |
|
8 } |
|
9 }); |