import { ActiveModelSerializer } from 'ember-cli-mirage';

export default ActiveModelSerializer.extend({
  embed: false,
  serialize(model, request) {
    let videoSerializer = this.serializerFor('video');
    return {
      trending_videos: model.videos.models.map(v => videoSerializer.serialize(v, request))
    };
  }
});
