@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | /** @var Router $router */ |
6 | 6 | |
7 | -$router->group(['prefix' => 'v1/blog', 'middleware' => 'api.token'], function (Router $router) { |
|
7 | +$router->group(['prefix' => 'v1/blog', 'middleware' => 'api.token'], function(Router $router) { |
|
8 | 8 | $router->get('categories', [ |
9 | 9 | 'as' => 'api.blog.category.index', |
10 | 10 | 'uses' => 'V1\CategoryController@index', |
@@ -3,14 +3,14 @@ |
||
3 | 3 | use Illuminate\Routing\Router; |
4 | 4 | |
5 | 5 | /** @var Router $router */ |
6 | -$router->bind('category', function ($id) { |
|
6 | +$router->bind('category', function($id) { |
|
7 | 7 | return app(\Modules\Blog\Repositories\CategoryRepository::class)->find($id); |
8 | 8 | }); |
9 | -$router->bind('post', function ($id) { |
|
9 | +$router->bind('post', function($id) { |
|
10 | 10 | return app(\Modules\Blog\Repositories\PostRepository::class)->find($id); |
11 | 11 | }); |
12 | 12 | |
13 | -$router->group(['prefix' => '/blog'], function (Router $router) { |
|
13 | +$router->group(['prefix' => '/blog'], function(Router $router) { |
|
14 | 14 | $router->get('posts', [ |
15 | 15 | 'as' => 'admin.blog.post.index', |
16 | 16 | 'uses' => 'PostController@index', |