Api.php
745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace AIOSEO\Plugin\Lite\Api;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use AIOSEO\Plugin\Common\Api as CommonApi;
/**
* Api class for the admin.
*
* @since 4.0.0
*/
class Api extends CommonApi\Api {
/**
* The routes we use in the rest API.
*
* @since 4.0.0
*
* @var array
*/
protected $liteRoutes = [
// phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
// phpcs:enable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
];
/**
* Get all the routes to register.
*
* @since 4.0.0
*
* @return array An array of routes.
*/
protected function getRoutes() {
return array_merge_recursive( $this->routes, $this->liteRoutes );
}
}