Example #1
0
<?php

Router::any('/', 'HomeController:index');
//
// Default hook routes.
//
Router::mount('/', 'Hook\\Application\\Routes');
Example #2
0
 public static function translateRouteDir($path = '')
 {
     static::$routeDir = $path;
     Router::mount($path);
 }