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