655c585358
* Add API to fetch conversations of a contact * Add conversation list in sidebar
14 lines
276 B
JavaScript
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();
|