https://t.me/AnonymousX5
Server : Apache
System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64
User : medchoco ( 2906)
PHP Version : 8.3.16
Disable Function : mail
Directory :  /home/medchoco/www/wp-content/plugins/jetpack-boost-git/app/rest-api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/medchoco/www/wp-content/plugins/jetpack-boost-git/app/rest-api/REST_API.php
<?php

namespace Automattic\Jetpack_Boost\REST_API;

use Automattic\Jetpack_Boost\REST_API\Contracts\Endpoint;

class REST_API {

	/**
	 * @var Route[]
	 */
	protected $routes = array();

	/**
	 * @param Endpoint[] $routes
	 */
	public function __construct( $routes ) {
		foreach ( $routes as $route_class ) {
			$this->routes[] = new Route( $route_class );
		}
	}

	public function register_rest_routes() {
		foreach ( $this->routes as $route ) {
			$route->register_rest_route();
		}
	}

	/**
	 * @param Endpoint|Endpoint[]|string $endpoints
	 *
	 * @return void
	 */
	public static function register( $endpoints ) {
		// If endpoints are passed as a string,
		// (array) will convert it to an array.
		$rest_api = new REST_API( (array) $endpoints );
		add_action( 'rest_api_init', array( $rest_api, 'register_rest_routes' ) );
	}
}

https://t.me/AnonymousX5 - 2025