@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | private function addCorsHeaders(Response $response) |
37 | 37 | { |
38 | - if (! $response->headers->has('Access-Control-Allow-Origin')) { |
|
38 | + if (!$response->headers->has('Access-Control-Allow-Origin')) { |
|
39 | 39 | $response = $response->header('Access-Control-Allow-Origin', config('tma-helper.cors.allowedOrigins', 'localhost')) |
40 | 40 | ->header('Access-Control-Allow-Methods', config('tma-helper.cors.allowedMethods')); |
41 | 41 | } |
@@ -25,10 +25,10 @@ |
||
25 | 25 | |
26 | 26 | private function addApiRoutes($router) |
27 | 27 | { |
28 | - $router->group(['middleware' => Cors::class], function () use ($router) { |
|
28 | + $router->group(['middleware' => Cors::class], function() use ($router) { |
|
29 | 29 | $router->get('api/ping', [ |
30 | 30 | 'as' => 'api.ping', |
31 | - 'uses' => function () { |
|
31 | + 'uses' => function() { |
|
32 | 32 | return 'pong'; |
33 | 33 | } |
34 | 34 | ]); |