mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +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}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
export const REST_REFRESH_FEATURES_PATH =
|
export const REST_REFRESH_FEATURES_PATH = '/wc/v3/wc_paypal/refresh-features';
|
||||||
'/wc/v3/wc_paypal/refresh-feature-status';
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class RefreshFeatureStatusEndpoint extends RestEndpoint {
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $rest_base = 'refresh-feature-status';
|
protected $rest_base = 'refresh-features';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache timeout in seconds.
|
* Cache timeout in seconds.
|
||||||
|
@ -84,7 +84,7 @@ class RefreshFeatureStatusEndpoint extends RestEndpoint {
|
||||||
*/
|
*/
|
||||||
public function register_routes() : void {
|
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(
|
register_rest_route(
|
||||||
$this->namespace,
|
$this->namespace,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue