Completed
Pull Request — master (#1)
by ARCANEDEV
02:55
created

PagesRoutes::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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