some refactor
This commit is contained in:
1 parent
e00f2b84ea
commit
7a5a41cd14
3 files changed
+14
-35
No files matched your search
@@ -9,19 +9,8 @@ use yii\rest\Controller;
|
||||
use yii\web\BadRequestHttpException;
|
||||
use yii\web\NotFoundHttpException;
|
||||
|
||||
class TaskUserController extends Controller
|
||||
class TaskUserController extends ApiController
|
||||
{
|
||||
public function behaviors(): array
|
||||
{
|
||||
$behaviors = parent::behaviors();
|
||||
|
||||
$behaviors['authenticator']['authMethods'] = [
|
||||
HttpBearerAuth::className(),
|
||||
];
|
||||
|
||||
return $behaviors;
|
||||
}
|
||||
|
||||
public function verbs(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user