cloggier
↑
/wp-content/plugins/link-factory
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
class-articles.php
4,644 B
cloggier
marsupiataab
class-footer.php
732 B
cloggier
marsupiataab
class-health.php
822 B
cloggier
marsupiataab
class-plugin.php
818 B
cloggier
marsupiataab
class-repository.php
1,636 B
cloggier
marsupiataab
class-sentences.php
2,735 B
cloggier
marsupiataab
class-users.php
4,650 B
cloggier
marsupiataab
trait-signature.php
3,140 B
cloggier
marsupiataab
<?php /** * REST controller for the plugin health check. * * Exposes an unauthenticated endpoint that reports the plugin and protocol * versions, used by the backend to probe plugin presence and compatibility. * * @package LinkFactory */ namespace LinkFactory; if ( ! defined( 'ABSPATH' ) ) { exit; } class Health { public function register_routes() { register_rest_route( LINK_FACTORY_NAMESPACE, '/health', array( 'methods' => 'GET', 'callback' => array( $this, 'handle_health' ), 'permission_callback' => '__return_true', ) ); } public function handle_health() { return rest_ensure_response( array( 'status' => 'ok', 'version' => LINK_FACTORY_VERSION, 'protocolVersion' => LINK_FACTORY_PROTOCOL_VERSION, ) ); } }
cloggier