♻️ Shorten REST endpoints: Features

This commit is contained in:
Philipp Stracker 2025-01-13 14:08:20 +01:00
parent 8f38bac810
commit 53ce535f4a
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -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';

View file

@ -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,