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

15 lines
301 B
JavaScript
Raw Normal View History

/* global axios */
import ApiClient from './ApiClient';
class ContactAPI extends ApiClient {
constructor() {
super('contacts', { accountScoped: true });
}
getConversations(contactId) {
return axios.get(`${this.url}/${contactId}/conversations`);
}
}
export default new ContactAPI();