♻️ Refactor onboarding actions to use controls

This commit is contained in:
Philipp Stracker 2024-11-18 16:31:05 +01:00
parent cf3798f610
commit 84d2af5f39
No known key found for this signature in database
4 changed files with 105 additions and 62 deletions

View file

@ -8,3 +8,22 @@
*/
export const STORE_KEY = 'onboarding';
/**
* REST path to persist data of this module to the WP DB.
*
* Used by: Controls
* See: OnboardingRestEndpoint.php
*
* @type {string}
*/
export const REST_PERSIST_PATH = 'onboarding';
/**
* REST path to perform the manual connection check, using client ID and secret,
*
* Used by: Controls
* See: ConnectManualRestEndpoint.php
*
* @type {string}
*/
export const REST_MANUAL_CONNECTION_PATH = 'connect_manual';