← All changes
|
src/rest-api/content-helper/class-content-helper-controller.php
+7
-5
3.18.0
→
3.24.2
View file →
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * API Content Helper Controller | |
| 3 | + * API Content Intelligence Controller | |
| 4 | 4 | * |
| 5 | 5 | * @package Parsely |
| 6 | 6 | * @since 3.17.0 |
| 7 | 7 | */ |
| @@ -12,11 +12,12 @@ | ||
| 12 | 12 | |
| 13 | 13 | use Parsely\REST_API\REST_API_Controller; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * The Content Helper API Controller. | |
| 16 | + * The Content Intelligence API Controller. | |
| 17 | 17 | * |
| 18 | - * Used to define the namespace, version, and endpoints for the Content Helper API. | |
| 18 | + * Used to define the namespace, version, and endpoints for the Content | |
| 19 | + * Intelligence API. | |
| 19 | 20 | * |
| 20 | 21 | * @since 3.17.0 |
| 21 | 22 | */ |
| 22 | 23 | class Content_Helper_Controller extends REST_API_Controller { |
| @@ -31,18 +32,19 @@ | ||
| 31 | 32 | return 'content-helper'; |
| 32 | 33 | } |
| 33 | 34 | |
| 34 | 35 | /** |
| 35 | - * Initializes the Content Helper API endpoints. | |
| 36 | + * Initializes the Content Intelligence API endpoints. | |
| 36 | 37 | * |
| 37 | 38 | * @since 3.17.0 |
| 38 | 39 | */ |
| 39 | 40 | public function init(): void { |
| 40 | - | |
| 41 | 41 | $endpoints = array( |
| 42 | + new Endpoint_Check_Auth( $this ), | |
| 42 | 43 | new Endpoint_Smart_Linking( $this ), |
| 43 | 44 | new Endpoint_Excerpt_Generator( $this ), |
| 44 | 45 | new Endpoint_Title_Suggestions( $this ), |
| 46 | + new Endpoint_Traffic_Boost( $this ), | |
| 45 | 47 | ); |
| 46 | 48 | |
| 47 | 49 | $this->register_endpoints( $endpoints ); |
| 48 | 50 | } |