Chatwoot/app/javascript/dashboard/api/cannedResponse.js

17 lines
346 B
JavaScript
Raw Normal View History

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