PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.7.1
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.7.1
1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
hostinger-reach / src / Api / Routes / HostingRoutes.php
hostinger-reach / src / Api / Routes Last commit date
FormsRoutes.php 9 months ago HostingRoutes.php 3 months ago IntegrationsRoutes.php 2 weeks ago ReachRoutes.php 1 month ago Routes.php 5 months ago
HostingRoutes.php
30 lines
1 <?php
2
3 namespace Hostinger\Reach\Api\Routes;
4
5 use Hostinger\Reach\Api\Handlers\HostingApiHandler;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 die;
9 }
10
11 class HostingRoutes extends Routes {
12 private HostingApiHandler $handler;
13
14 public function __construct( HostingApiHandler $handler ) {
15 $this->handler = $handler;
16 }
17
18 public function register_routes(): void {
19 register_rest_route(
20 HOSTINGER_REACH_PLUGIN_REST_API_BASE,
21 'hosting/domain-details',
22 array(
23 'methods' => 'GET',
24 'callback' => array( $this->handler, 'get_domain_details_handler' ),
25 'permission_callback' => array( $this, 'permission_check' ),
26 )
27 );
28 }
29 }
30