mirror of
https://github.com/avecms/AVE.cms.git
synced 2026-08-01 08:45:44 +00:00
32 lines
938 B
PHP
32 lines
938 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------------------
|
|
| AVE.cms
|
|
|--------------------------------------------------------------------------------------
|
|
| @package AVE.cms
|
|
| @file system/App/Frontend/Feeds/Feature.php
|
|
| @author AVE.cms <support@ave-cms.ru>
|
|
| @copyright 2007-2026 (c) AVE.cms
|
|
| @link https://ave-cms.ru
|
|
| @version 3.3
|
|
*/
|
|
|
|
namespace App\Frontend\Feeds;
|
|
|
|
defined('BASEPATH') || die('Direct access to this location is not allowed.');
|
|
|
|
use App\Common\Router;
|
|
|
|
class Feature
|
|
{
|
|
protected static $booted = false;
|
|
public static function boot(array $config = array())
|
|
{
|
|
if (self::$booted) { return; }
|
|
self::$booted = true;
|
|
Router::get('/feeds/{alias}', array(Controller::class, 'show'));
|
|
foreach (array_keys(FeedPresets::paths()) as $path) { Router::get('/' . $path, array(PathController::class, 'showPath')); }
|
|
}
|
|
}
|