Completed
Push — master ( 5fb9ec...7328ed )
by ARCANEDEV
04:25
created

ProfileRoutes::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 13
ccs 0
cts 10
cp 0
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Http\Routes\Admin;
2
3
use Arcanedev\Support\Routing\RouteRegistrar;
4
5
/**
6
 * Class     ProfileRoutes
7
 *
8
 * @package  Arcanesoft\Auth\Http\Routes\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class ProfileRoutes extends RouteRegistrar
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * Map routes.
19
     */
20
    public function map()
21
    {
22
        $this->prefix('profile')->name('profile.')->group(function () {
23
            $this->get('/', 'ProfileController@index')
24
                 ->name('index'); // admin::auth.profile.index
25
26
            // TODO: Remove the user id ??
27
            $this->prefix('{auth_user}/password')->name('password.')->group(function () {
28
                $this->put('/', 'ProfileController@updatePassword')
29
                     ->name('update'); // admin::auth.profile.password.update
30
            });
31
        });
32
    }
33
}
34