@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('email'); |
| 19 | 19 | $table->string('name'); |
@@ -7,12 +7,12 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | $api = app('Dingo\Api\Routing\Router'); |
| 10 | -$api->version('v1', function ($api) { |
|
| 10 | +$api->version('v1', function($api) { |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Welcome message. |
| 14 | 14 | */ |
| 15 | - $api->get('/', function () { |
|
| 15 | + $api->get('/', function() { |
|
| 16 | 16 | return 'LaCMS API'; |
| 17 | 17 | }); |
| 18 | 18 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | // 'middleware' => 'api:auth', // @todo |
| 25 | 25 | 'prefix' => 'users', |
| 26 | 26 | 'namespace' => 'App\Http\Controllers\Api\V1', |
| 27 | - ], function ($api) { |
|
| 27 | + ], function($api) { |
|
| 28 | 28 | $api->get('/', 'UsersController@index'); |
| 29 | 29 | $api->post('/', 'UsersController@store'); |
| 30 | 30 | $api->get('/{id}', 'UsersController@show'); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | // 'middleware' => 'api:auth', // @todo |
| 43 | 43 | 'prefix' => 'images', |
| 44 | 44 | 'namespace' => 'App\Http\Controllers\Api\V1', |
| 45 | - ], function ($api) { |
|
| 45 | + ], function($api) { |
|
| 46 | 46 | $api->get('/', 'ImagesController@index'); |
| 47 | 47 | $api->post('/', 'ImagesController@store'); |
| 48 | 48 | // $api->get('/{id}', 'ImagesController@show'); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // 'middleware' => 'foo', |
| 62 | 62 | 'prefix' => 'posts', |
| 63 | 63 | 'namespace' => 'App\Http\Controllers\Api\V1', |
| 64 | - ], function ($api) { |
|
| 64 | + ], function($api) { |
|
| 65 | 65 | $api->get('/', 'PostsController@index'); |
| 66 | 66 | $api->post('/', 'PostsController@store'); |
| 67 | 67 | $api->get('/{id}', 'PostsController@show'); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | // 'middleware' => 'foo', |
| 82 | 82 | 'prefix' => 'authors', |
| 83 | 83 | 'namespace' => 'App\Http\Controllers\Api\V1', |
| 84 | - ], function ($api) { |
|
| 84 | + ], function($api) { |
|
| 85 | 85 | $api->get('/', 'AuthorsController@index'); |
| 86 | 86 | $api->post('/', 'AuthorsController@store'); |
| 87 | 87 | $api->get('/{id}', 'AuthorsController@show'); |