Some more changes linked to the change of api organization + some jshint error cleaning
import { JSONAPISerializer } from 'ember-cli-mirage';
import _ from 'lodash/lodash';
export default JSONAPISerializer.extend({
serialize(response) {
return _(response.models).map((lang) => { return [lang.id, lang.count];}).object().value();
}
});