@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
@@ -7,9 +7,7 @@ |
||
| 7 | 7 | use App\User; |
| 8 | 8 | use Chrisbjr\ApiGuard\Http\Controllers\ApiGuardController; |
| 9 | 9 | use Illuminate\Http\Request; |
| 10 | -use App\Http\Requests; |
|
| 11 | 10 | use Illuminate\Support\Facades\Auth; |
| 12 | -use Illuminate\Support\Facades\Input; |
|
| 13 | 11 | |
| 14 | 12 | /** |
| 15 | 13 | * Class CalculatorApiController |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | $this->calculator->create($calcul); |
| 74 | 74 | |
| 75 | - return $this->response->withItem($calcul, $this->calcul_transformer); |
|
| 75 | + return $this->response->withItem($calcul, $this->calcul_transformer); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $router->group([ |
| 56 | 56 | 'namespace' => $this->namespace, 'middleware' => 'web', |
| 57 | - ], function ($router) { |
|
| 57 | + ], function($router) { |
|
| 58 | 58 | require app_path('Http/routes.php'); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $router->group([ |
| 65 | 65 | 'namespace' => $this->namespace, |
| 66 | - ], function ($router) { |
|
| 66 | + ], function($router) { |
|
| 67 | 67 | require app_path('Http/routes-api.php'); |
| 68 | 68 | }); |
| 69 | 69 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -Route::group(['prefix' => 'api/'], function () { |
|
| 4 | +Route::group([ 'prefix' => 'api/' ], function() { |
|
| 5 | 5 | Route::post('calc/save', 'CalculatorApiController@store'); |
| 6 | 6 | }); |
| 7 | 7 | \ No newline at end of file |