PHP Classes

File: aksara/Modules/Blogs/Config/Routes.php

Recommend this page to a friend!
  Packages of Aby Dahana   Aksara   aksara/Modules/Blogs/Config/Routes.php   Download  
File: aksara/Modules/Blogs/Config/Routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Page Builder: Finalized component precision styling, fixed property TypeErrors, synchronized media previews, and optimized layout spacing across Card, Alert, and CTA components. (CS-Fix included)
Date: Yesterday
Size: 1,029 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of Aksara CMS, both framework and publishing
 * platform.
 *
 * @author Aby Dahana <abydahana@gmail.com>
 * @copyright (c) Aksara Laboratory <https://aksaracms.com>
 * @license MIT License
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the LICENSE.txt file.
 *
 * When the signs come, those who don't believe at "that time"
 * will have only two choices, commit suicide or become brutal.
 */

/**
 * @var \CodeIgniter\Router\RouteCollection $routes
 */
if (! isset($routes)) {
   
$routes = \Config\Services::routes(true);
}

$routes->add('blogs/search', '\Aksara\Modules\Blogs\Controllers\Search::index');
$routes->add('blogs/tags', '\Aksara\Modules\Blogs\Controllers\Tags::index');
$routes->add('blogs/read', '\Aksara\Modules\Blogs\Controllers\Read::index');
$routes->add('blogs/(:any)/(:any)', '\Aksara\Modules\Blogs\Controllers\Read::index/$1/$2');
$routes->add('blogs/(:any)', '\Aksara\Modules\Blogs\Controllers\Category::index/$1');