@@ -2,18 +2,18 @@ |
||
2 | 2 | use App\Controller\HomeController; |
3 | 3 | $route = new \Core\Route($app); |
4 | 4 | |
5 | -$files = getDirFiles(__APP_ROOT__.'app/Routes/'); |
|
5 | +$files = getDirFiles(__APP_ROOT__ . 'app/Routes/'); |
|
6 | 6 | /** Route Partial Loadup =================================================== */ |
7 | 7 | foreach ($files as $partial) { |
8 | - $file = __APP_ROOT__.'app/Routes/'.$partial; |
|
8 | + $file = __APP_ROOT__ . 'app/Routes/' . $partial; |
|
9 | 9 | |
10 | - if ( ! file_exists($file)) |
|
10 | + if (!file_exists($file)) |
|
11 | 11 | { |
12 | 12 | $msg = "Route partial [{$partial}] not found."; |
13 | 13 | } |
14 | 14 | include $file; |
15 | 15 | } |
16 | -$route->get('/', HomeController::class.':index')->setName('home'); |
|
16 | +$route->get('/', HomeController::class . ':index')->setName('home'); |
|
17 | 17 | |
18 | 18 | $route->resource('/user/auth', '\App\Controller\User\AuthController', $args = []); |
19 | 19 |