@@ -139,11 +139,11 @@ |
||
| 139 | 139 | */ |
| 140 | 140 | protected function registerDefaultParsers(): void |
| 141 | 141 | { |
| 142 | - $this->registerParser('application/json', static function ($body) { |
|
| 142 | + $this->registerParser('application/json', static function($body) { |
|
| 143 | 143 | return Json::decode($body, true); |
| 144 | 144 | }); |
| 145 | 145 | |
| 146 | - $this->registerParser('application/x-www-form-urlencoded', static function ($body) { |
|
| 146 | + $this->registerParser('application/x-www-form-urlencoded', static function($body) { |
|
| 147 | 147 | $data = []; |
| 148 | 148 | parse_str($body, $data); |
| 149 | 149 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | */ |
| 73 | 73 | public function addRoutes(Router $router): void |
| 74 | 74 | { |
| 75 | - $router->group('/api', function (Router $router) { |
|
| 75 | + $router->group('/api', function(Router $router) { |
|
| 76 | 76 | $router->post('/auth/login', LoginAction::class, 'auth_login'); |
| 77 | 77 | }); |
| 78 | 78 | } |