@@ -3,11 +3,11 @@ |
||
3 | 3 | use App\Middleware\GuestMiddleware; |
4 | 4 | use App\Middleware\AuthMiddleware; |
5 | 5 | |
6 | -$app->group('', function () { |
|
6 | +$app->group('', function() { |
|
7 | 7 | $this->map(['GET', 'POST'], '/login', 'auth.controller:login')->setName('login'); |
8 | 8 | $this->map(['GET', 'POST'], '/register', 'auth.controller:register')->setName('register'); |
9 | 9 | })->add(new GuestMiddleware($container)); |
10 | 10 | |
11 | -$app->group('', function () { |
|
11 | +$app->group('', function() { |
|
12 | 12 | $this->get('/logout', 'auth.controller:logout')->setName('logout'); |
13 | 13 | })->add(new AuthMiddleware($container)); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | ]; |
7 | 7 | |
8 | 8 | foreach ($controllers as $key => $class) { |
9 | - $container[$key] = function ($container) use ($class) { |
|
9 | + $container[$key] = function($container) use ($class) { |
|
10 | 10 | return new $class($container); |
11 | 11 | }; |
12 | 12 | } |