PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
3.24.3 3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 All 107 releases
wp-parsely / src / rest-api / content-helper / class-content-helper-controller.php

class-content-helper-controller.php in Parse.ly 3.24.2, at src/rest-api/content-helper/class-content-helper-controller.php

52 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * API Content Intelligence Controller
4 *
5 * @package Parsely
6 * @since 3.17.0
7 */
8
9 declare(strict_types=1);
10
11 namespace Parsely\REST_API\Content_Helper;
12
13 use Parsely\REST_API\REST_API_Controller;
14
15 /**
16 * The Content Intelligence API Controller.
17 *
18 * Used to define the namespace, version, and endpoints for the Content
19 * Intelligence API.
20 *
21 * @since 3.17.0
22 */
23 class Content_Helper_Controller extends REST_API_Controller {
24 /**
25 * Gets the prefix for this API route.
26 *
27 * @since 3.17.0
28 *
29 * @return string The namespace.
30 */
31 public static function get_route_prefix(): string {
32 return 'content-helper';
33 }
34
35 /**
36 * Initializes the Content Intelligence API endpoints.
37 *
38 * @since 3.17.0
39 */
40 public function init(): void {
41 $endpoints = array(
42 new Endpoint_Check_Auth( $this ),
43 new Endpoint_Smart_Linking( $this ),
44 new Endpoint_Excerpt_Generator( $this ),
45 new Endpoint_Title_Suggestions( $this ),
46 new Endpoint_Traffic_Boost( $this ),
47 );
48
49 $this->register_endpoints( $endpoints );
50 }
51 }
52