search fix
This commit is contained in:
@ -5,6 +5,7 @@ namespace frontend\modules\api\controllers;
|
||||
use common\behaviors\GsCors;
|
||||
use common\models\Options;
|
||||
use yii\filters\AccessControl;
|
||||
use yii\filters\auth\QueryParamAuth;
|
||||
|
||||
class SkillsController extends \yii\rest\Controller
|
||||
{
|
||||
@ -17,6 +18,10 @@ class SkillsController extends \yii\rest\Controller
|
||||
'application/json' => \yii\web\Response::FORMAT_JSON,
|
||||
],
|
||||
],
|
||||
'authenticatior' => [
|
||||
'class' => QueryParamAuth::class, //implement access token authentication
|
||||
'except' => ['login'], // no need to verify the access token method, pay attention to distinguish between $noAclLogin
|
||||
],
|
||||
'corsFilter' => [
|
||||
'class' => GsCors::class,
|
||||
'cors' => [
|
||||
|
Reference in New Issue
Block a user