diff --git a/src/Core.php b/src/Core.php index 9416efa..4b8a7a5 100644 --- a/src/Core.php +++ b/src/Core.php @@ -275,6 +275,8 @@ public static function runApplication() $routePath = static::$paths['routes']; $routeFiles = glob("$routePath/*.php"); + app()->setNamespace('\App\Controllers'); + require "$routePath/index.php"; foreach ($routeFiles as $routeFile) {