/* global axios */ import ApiClient from './ApiClient'; class CannedResponse extends ApiClient { constructor() { super('canned_responses'); } get({ searchKey }) { const url = searchKey ? `${this.url}?search=${searchKey}` : this.url; return axios.get(url); } } export default new CannedResponse();