Completed
Pull Request — master (#60)
by
unknown
05:09
created

Routes::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 1
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Api;
4
5
class Routes
6
{
7
8
    public function init($router)
9
    {
10
        $router->add('/api', array(
11
            'module'     => 'api',
12
            'controller' => 'index',
13
            'action'     => 'index',
14
        ))->setName('api');
15
16
        return $router;
17
    }
18
}
19