Chatwoot/app/javascript/dashboard/api/account.js
Divyesh Kothari 89ed0b425b
feat: Ability for the logged in user to create a new account (#985)
Co-authored-by: Divyesh <dkothari@box8.in>
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
2020-07-26 12:54:50 +05:30

14 lines
281 B
JavaScript

/* global axios */
import ApiClient from './ApiClient';
class AccountAPI extends ApiClient {
constructor() {
super('', { accountScoped: true });
}
createAccount(data) {
return axios.post(`${this.apiVersion}/accounts`, data);
}
}
export default new AccountAPI();