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