16 lines
321 B
JavaScript
16 lines
321 B
JavaScript
/* 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();
|