Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/croogo/croogo/Comments/config/routes.php
<?php

use Cake\Routing\RouteBuilder;
use
Croogo\Core\Router;

Router::plugin('Croogo/Comments', ['path' => '/'], function (RouteBuilder $route) {
   
$route->prefix('admin', function (RouteBuilder $route) {
       
$route->setExtensions(['json']);
       
$route->applyMiddleware('csrf');

       
$route->scope('/comments', [], function (RouteBuilder $route) {
           
$route->fallbacks();
        });
    });

   
$route->setExtensions(['rss']);

   
$route->scope('/comments', [], function (RouteBuilder $route) {
       
Router::build($route, '/', ['controller' => 'Comments']);

       
$route->fallbacks();
    });
});