Better naming for REST API endpoints

This commit is contained in:
Claudio Sanches 2019-07-15 13:19:03 -03:00
parent 3fd0eb7391
commit eac2d39edf
2 changed files with 4 additions and 4 deletions

View File

@ -165,10 +165,10 @@ class WC_WCCOM_Site {
* @return array Registered namespaces. * @return array Registered namespaces.
*/ */
public static function register_rest_namespace( $namespaces ) { public static function register_rest_namespace( $namespaces ) {
require_once WC_ABSPATH . 'includes/wccom-site/rest-api/v1/class-wc-rest-wccom-site-installer-v1-controller.php'; require_once WC_ABSPATH . 'includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php';
$namespaces['wccom-site/v1'] = array( $namespaces['wccom-site/v1'] = array(
'installer' => 'WC_REST_WCCOM_Site_Installer_V1_Controller', 'installer' => 'WC_REST_WCCOM_Site_Installer_Controller',
); );
return $namespaces; return $namespaces;

View File

@ -11,12 +11,12 @@
defined( 'ABSPATH' ) || exit; defined( 'ABSPATH' ) || exit;
/** /**
* REST API WCCOM Site Installer v1 Controller Class. * REST API WCCOM Site Installer Controller Class.
* *
* @package WooCommerce/WCCOM_Site/REST_API * @package WooCommerce/WCCOM_Site/REST_API
* @extends WC_REST_Controller * @extends WC_REST_Controller
*/ */
class WC_REST_WCCOM_Site_Installer_V1_Controller extends WC_REST_Controller { class WC_REST_WCCOM_Site_Installer_Controller extends WC_REST_Controller {
/** /**
* Endpoint namespace. * Endpoint namespace.