'GET', 'callback' => [ new AnxMonitoring\VersionMonitoring(), 'getUpdates', ] ] ); /** * Custom endpoint to check if the website is working correctly * * URL: /wp-json/anxapi/v1/up/ */ register_rest_route( $namespace, '/up', [ 'methods' => 'GET', 'callback' => [ new AnxMonitoring\LiveMonitoring(), 'upCheck', ], ] ); });