@@ -3,23 +3,23 @@ |
||
| 3 | 3 | $app = app(); |
| 4 | 4 | |
| 5 | 5 | $adminOptions = [ |
| 6 | - 'prefix' => '/admin', |
|
| 7 | - 'controller' => 'Admin', |
|
| 8 | - 'middleware' => ['admin'] |
|
| 6 | + 'prefix' => '/admin', |
|
| 7 | + 'controller' => 'Admin', |
|
| 8 | + 'middleware' => ['admin'] |
|
| 9 | 9 | ]; |
| 10 | 10 | |
| 11 | 11 | $app->route->group($adminOptions, function ($route) { |
| 12 | 12 | |
| 13 | - $route->add('/', 'Home'); |
|
| 13 | + $route->add('/', 'Home'); |
|
| 14 | 14 | |
| 15 | - //Login |
|
| 16 | - $route->add('/login', 'Login'); |
|
| 17 | - $route->add('/submit', 'Login@submit', 'POST'); |
|
| 18 | - $route->add('/logout', 'Logout'); |
|
| 15 | + //Login |
|
| 16 | + $route->add('/login', 'Login'); |
|
| 17 | + $route->add('/submit', 'Login@submit', 'POST'); |
|
| 18 | + $route->add('/logout', 'Logout'); |
|
| 19 | 19 | |
| 20 | - //Profile |
|
| 21 | - $route->add('/profile', 'Profile', 'GET'); |
|
| 20 | + //Profile |
|
| 21 | + $route->add('/profile', 'Profile', 'GET'); |
|
| 22 | 22 | |
| 23 | - //Settings |
|
| 24 | - $route->add('/settings', 'Settings'); |
|
| 23 | + //Settings |
|
| 24 | + $route->add('/settings', 'Settings'); |
|
| 25 | 25 | }); |
| 26 | 26 | \ No newline at end of file |
@@ -59,7 +59,9 @@ |
||
| 59 | 59 | |
| 60 | 60 | $this->file->call($this->file->to('config/constant.php')); |
| 61 | 61 | |
| 62 | - foreach (glob("routes/**/*.php") AS $route) $this->file->call($this->file->to($route)); |
|
| 62 | + foreach (glob("routes/**/*.php") AS $route) { |
|
| 63 | + $this->file->call($this->file->to($route)); |
|
| 64 | + } |
|
| 63 | 65 | |
| 64 | 66 | $output = $this->route->getProperRoute(); |
| 65 | 67 | |