refactor(onboarding): use separate onboarding controller (#14507)

Depends on: https://github.com/chatwoot/chatwoot/pull/14370

This PR creates a new onboarding controller, this allows more control
that the default account update API. Allowing us to spin tasks and
update details required specifically during the onboarding flow
This commit is contained in:
Shivam Mishra
2026-06-01 13:34:11 +05:30
committed by GitHub
parent 4339e0ee0a
commit a3ffb48a47
9 changed files with 207 additions and 23 deletions
@@ -0,0 +1,14 @@
/* global axios */
import ApiClient from './ApiClient';
class OnboardingAPI extends ApiClient {
constructor() {
super('onboarding', { accountScoped: true });
}
update(data) {
return axios.patch(this.url, data);
}
}
export default new OnboardingAPI();