Chatwoot/app/javascript/dashboard/api/contacts.js
Pranav Raj S 655c585358 Feature: View a contact's previous conversation (#422)
* Add API to fetch conversations of a contact

* Add conversation list in sidebar
2020-01-13 11:17:03 +05:30

14 lines
276 B
JavaScript

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