PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.65
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.65
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
leadin / public / modules / api / class-healthcheck-api-controller.php

class-healthcheck-api-controller.php in HubSpot All-In-One Marketing – Forms, Popups, Live Chat 11.3.65, at public/modules/api/class-healthcheck-api-controller.php

34 lines 616 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Leadin\api;
4
5 use Leadin\api\Base_Api_Controller;
6
7 /**
8 * Healthcheck deployment endpoint
9 */
10 class Healthcheck_Api_Controller extends Base_Api_Controller {
11
12 /**
13 * Class constructor, register route.
14 */
15 public function __construct() {
16 self::register_leadin_route(
17 '/healthcheck',
18 \WP_REST_Server::READABLE,
19 array( $this, 'get_healthcheck_request' )
20 );
21 }
22
23 /**
24 * Callback for healtcheck endpoint.
25 * leadin/v1/healthcheck Method:GET.
26 *
27 * @return string OK response message.
28 */
29 public function get_healthcheck_request() {
30 return new \WP_REST_Response( 'OK', 200 );
31 }
32
33 }
34