mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Shorten REST endpoints: Features
This commit is contained in:
parent
8f38bac810
commit
53ce535f4a
2 changed files with 3 additions and 4 deletions
|
@ -93,5 +93,4 @@ export const REST_WEBHOOKS_SIMULATE = '/wc/v3/wc_paypal/webhooks/simulate';
|
|||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const REST_REFRESH_FEATURES_PATH =
|
||||
'/wc/v3/wc_paypal/refresh-feature-status';
|
||||
export const REST_REFRESH_FEATURES_PATH = '/wc/v3/wc_paypal/refresh-features';
|
||||
|
|
|
@ -25,7 +25,7 @@ class RefreshFeatureStatusEndpoint extends RestEndpoint {
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $rest_base = 'refresh-feature-status';
|
||||
protected $rest_base = 'refresh-features';
|
||||
|
||||
/**
|
||||
* Cache timeout in seconds.
|
||||
|
@ -84,7 +84,7 @@ class RefreshFeatureStatusEndpoint extends RestEndpoint {
|
|||
*/
|
||||
public function register_routes() : void {
|
||||
/**
|
||||
* POST /wp-json/wc/v3/wc_paypal/refresh-feature-status
|
||||
* POST /wp-json/wc/v3/wc_paypal/refresh-features
|
||||
*/
|
||||
register_rest_route(
|
||||
$this->namespace,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue