import VideoAdapter from 'web-client/adapters/video';
import { withQueryParams } from 'web-client/utilities/url-params';

export default VideoAdapter.extend({
  apiVersion: 4,

  query(store, type, query) {
    let url = withQueryParams(
      `/api/channels/${query.channel}/video_manager/past_broadcasts`,
      ['limit', 'offset'],
      query
    );
    return this.request(url);
  }
});
