Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -15,21 +15,21 @@ class WPSEO_Endpoint_Statistics implements WPSEO_Endpoint {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const REST_NAMESPACE = 'yoast/v1';
|
||||
public const REST_NAMESPACE = 'yoast/v1';
|
||||
|
||||
/**
|
||||
* The route of the statistics endpoint.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const ENDPOINT_RETRIEVE = 'statistics';
|
||||
public const ENDPOINT_RETRIEVE = 'statistics';
|
||||
|
||||
/**
|
||||
* The name of the capability needed to retrieve data using the endpoints.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const CAPABILITY_RETRIEVE = 'read';
|
||||
public const CAPABILITY_RETRIEVE = 'read';
|
||||
|
||||
/**
|
||||
* Service to use.
|
||||
@@ -49,6 +49,8 @@ class WPSEO_Endpoint_Statistics implements WPSEO_Endpoint {
|
||||
|
||||
/**
|
||||
* Registers the REST routes that are available on the endpoint.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register() {
|
||||
// Register fetch config.
|
||||
|
||||
Reference in New Issue
Block a user