♻️ Refactor resolver and controls

This commit is contained in:
Philipp Stracker 2024-11-20 16:48:50 +01:00
parent 79174459d8
commit 90c6cd1e7d
No known key found for this signature in database
5 changed files with 42 additions and 57 deletions

View file

@ -15,7 +15,7 @@ export const STORE_NAME = 'wc/paypal/onboarding';
*
* @type {string}
*/
export const REST_HYDRATE_PATH = 'onboarding';
export const REST_HYDRATE_PATH = '/wc/v3/wc_paypal/onboarding';
/**
* REST path to persist data of this module to the WP DB.
@ -25,7 +25,7 @@ export const REST_HYDRATE_PATH = 'onboarding';
*
* @type {string}
*/
export const REST_PERSIST_PATH = 'onboarding';
export const REST_PERSIST_PATH = '/wc/v3/wc_paypal/onboarding';
/**
* REST path to perform the manual connection check, using client ID and secret,
@ -35,4 +35,4 @@ export const REST_PERSIST_PATH = 'onboarding';
*
* @type {string}
*/
export const REST_MANUAL_CONNECTION_PATH = 'connect_manual';
export const REST_MANUAL_CONNECTION_PATH = '/wc/v3/wc_paypal/connect_manual';