diff --git a/system/Router/RouteCollection.php b/system/Router/RouteCollection.php index d143b4fcb631..c949b562fbe1 100644 --- a/system/Router/RouteCollection.php +++ b/system/Router/RouteCollection.php @@ -117,16 +117,18 @@ class RouteCollection implements RouteCollectionInterface * [ * verb => [ * routeKey(regex) => [ - * 'name' => routeName - * 'handler' => handler, - * 'from' => from, + * 'name' => routeName + * 'handler' => handler, + * 'from' => from, * ], - * // redirect route - * or routeKey(regex)(from) => [ + * ], + * // redirect route + * '*' => [ + * routeKey(regex)(from) => [ * 'name' => routeName * 'handler' => [routeKey(regex)(to) => handler], + * 'from' => from, * 'redirect' => statusCode, - * 'from' => from, * ], * ], * ]