\x20\40\x20\40 HEX
HEX
Server: Apache
System: Linux web1.jenscom.net 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User: sps (1059)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/sps/www/wp-content/plugins/nextgen-gallery/src/REST/Manager.php
<?php
/**
 * REST API Manager
 *
 * @package NextGEN Gallery
 * @subpackage REST API
 */

namespace Imagely\NGG\REST;

use Imagely\NGG\REST\Admin\AttachToPost;
use Imagely\NGG\REST\Admin\Block;
use Imagely\NGG\REST\Admin\RolesCapabilities;
use Imagely\NGG\REST\DataMappers\AddonsREST;
use Imagely\NGG\REST\DataMappers\AlbumREST;
use Imagely\NGG\REST\DataMappers\DisplayTypeREST;
use Imagely\NGG\REST\DataMappers\SettingsREST;
use Imagely\NGG\REST\DataMappers\GalleryREST;
use Imagely\NGG\REST\DataMappers\ImageREST;
use Imagely\NGG\REST\DataMappers\ImageOperationsREST;
use Imagely\NGG\REST\DataMappers\LicenseREST;
use Imagely\NGG\REST\DataMappers\NotificationsREST;
use Imagely\NGG\REST\DataMappers\PluginManagementREST;
use Imagely\NGG\REST\DataMappers\TagREST;
use Imagely\NGG\REST\ConvertGallery\ConvertGalleryREST;

/**
 * REST API Manager for NextGEN Gallery.
 *
 * Manages REST API endpoints and routing for NextGEN Gallery.
 */
class Manager {

	/**
	 * Initializes REST API routes and endpoints.
	 */
	public static function rest_api_init() {
		$block = new Block();
		$block->register_routes();

		$atp = new AttachToPost();
		$atp->register_routes();

		$roles_capabilities = new RolesCapabilities();
		$roles_capabilities->register_routes();

		// Register the DataMappers REST endpoints.
		AddonsREST::register_routes();
		GalleryREST::register_routes();
		AlbumREST::register_routes();
		ImageREST::register_routes();
		ImageOperationsREST::register_routes();
		DisplayTypeREST::register_routes();
		SettingsREST::register_routes();
		TagREST::register_routes();

		$notifications = new NotificationsREST();
		$notifications->register_routes();

		$plugin_management = new PluginManagementREST();
		$plugin_management->register_routes();

		$license = new LicenseREST();
		$license->register_routes();

		// Register the Convert Gallery REST endpoints.
		ConvertGalleryREST::register_routes();
	}
}