fix api controllers

This commit is contained in:
andrey
2022-01-14 17:05:29 +03:00
parent a189c07c02
commit 8806be42b2
3 changed files with 24 additions and 27 deletions

View File

@ -14,18 +14,8 @@ use yii\web\NotFoundHttpException;
use yii\rest\Controller;
use yii\web\ServerErrorHttpException;
class DocumentController extends Controller
class DocumentController extends ApiController
{
public function behaviors(): array
{
$behaviors = parent::behaviors();
$behaviors['authenticator']['authMethods'] = [
HttpBearerAuth::className(),
];
return $behaviors;
}
public function verbs(): array
{