| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Blog\Http\Routes\Front; |
||
| 23 | public function map(Registrar $router) |
||
| 24 | { |
||
| 25 | 6 | $this->group(['prefix' => 'posts', 'as' => 'posts.'], function () { |
|
| 26 | 6 | $this->get('/', 'PostsController@index')->name('index'); // public::blog.posts.index |
|
| 27 | 6 | $this->get('{slug}', 'PostsController@show')->name('show'); // public::blog.posts.show |
|
| 28 | 6 | $this->get('{year}', 'PostsController@archive')->name('archive'); // public::blog.posts.archive |
|
| 29 | 6 | }); |
|
| 30 | 6 | } |
|
| 31 | } |
||
| 32 |