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

PasswordResetsRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 25
ccs 0
cts 13
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 15 1
1
<?php namespace Arcanesoft\Auth\Http\Routes\Admin;
2
3
use Arcanedev\Support\Routing\RouteRegistrar;
4
5
/**
6
 * Class     PasswordResetsRoutes
7
 *
8
 * @package  Arcanesoft\Auth\Http\Routes\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class PasswordResetsRoutes extends RouteRegistrar
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * Map routes.
19
     */
20
    public function map()
21
    {
22
        $this->prefix('password-resets')->name('password-resets.')->group(function () {
23
            $this->get('/', 'PasswordResetsController@index')
24
                 ->name('index');  // admin::auth.password-resets.index
25
26
            $this->delete('clear', 'PasswordResetsController@clear')
27
                 ->middleware('ajax')
28
                 ->name('clear');  // admin::auth.password-resets.clear
29
30
            $this->delete('delete', 'PasswordResetsController@delete')
31
                 ->middleware('ajax')
32
                 ->name('delete'); // admin::auth.password-resets.delete
33
        });
34
    }
35
}
36