Completed
Push — master ( f462f6...e66480 )
by Charles
04:22
created

ServerController::actions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace app\controllers\api\v1;
4
5
use yrc\rest\Controller;
6
use yii\web\HttpException;
7
use Yii;
8
9
class ServerController extends Controller
10
{
11
    /**
12
     * Map actions to the appropriate action class
13
     * @return array
14
     */
15
    public function actions()
16
    {
17
        return [
18
            'otk' => 'yrc\api\actions\OneTimeKeyAction',
19
        ];
20
    }
21
}
22