cms/app-client/mirage/serializers/language.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 21 Aug 2016 13:51:22 +0200
changeset 257 eba9edbd8f46
parent 173 cf7b221238fd
child 274 53a6985443f8
permissions -rw-r--r--
Add title to annotation Divide annotations in fragments when timestamp is the same

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();
    }
});