From ad6e3e141b6201788cce9b0d351411bf47e19669 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 19 Nov 2023 09:42:30 +0900 Subject: [PATCH] config: update system/Config/Routing This should be the same as Config\Routing. --- system/Config/Routing.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/system/Config/Routing.php b/system/Config/Routing.php index 409bcf099f65..e6d25138f8f0 100644 --- a/system/Config/Routing.php +++ b/system/Config/Routing.php @@ -24,7 +24,7 @@ class Routing extends BaseConfig * Default: APPPATH . 'Config/Routes.php' */ public array $routeFiles = [ - APPPATH . 'Routes.php', + APPPATH . 'Config/Routes.php', ]; /** @@ -95,4 +95,17 @@ class Routing extends BaseConfig * Default: false */ public bool $prioritize = false; + + /** + * Map of URI segments and namespaces. For Auto Routing (Improved). + * + * The key is the first URI segment. The value is the controller namespace. + * E.g., + * [ + * 'blog' => 'Acme\Blog\Controllers', + * ] + * + * @var array [ uri_segment => namespace ] + */ + public array $moduleRoutes = []; }