import VideoAdapter from 'web-client/adapters/video';
import { normalizeVideoId } from 'web-client/utilities/normalize-video-id';

export default VideoAdapter.extend({
  apiVersion: 4,
  query(store, type, query) {
    let url = `/kraken/videos/similar/v${normalizeVideoId(query.video)}`;
    return this.request(url);
  }
});
