| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 20 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Auth\Http\Routes\Front; |
||
| 23 | 24 | public function map(Registrar $router) |
|
| 24 | { |
||
| 25 | 24 | parent::map($router); |
|
| 26 | |||
| 27 | 24 | $this->group([ |
|
| 28 | 24 | 'prefix' => 'login', |
|
| 29 | 18 | 'as' => 'login.', |
|
| 30 | 24 | ], function () { |
|
| 31 | 24 | $this->get('/', [ |
|
| 32 | 24 | 'as' => 'get', // auth::login.get |
|
| 33 | 18 | 'uses' => 'AuthController@getLogin', |
|
| 34 | 18 | ]); |
|
| 35 | |||
| 36 | 24 | $this->post('/', [ |
|
| 37 | 24 | 'as' => 'post', // auth::login.post |
|
| 38 | 18 | 'uses' => 'AuthController@postLogin', |
|
| 39 | 18 | ]); |
|
| 40 | 24 | }); |
|
| 41 | |||
| 42 | 24 | $this->get('logout', [ |
|
| 43 | 24 | 'as' => 'logout', // auth::logout |
|
| 44 | 18 | 'uses' => 'AuthController@getLogout', |
|
| 45 | 18 | ]); |
|
| 46 | 24 | } |
|
| 47 | } |
||
| 48 |