fix api controllers

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

No files matched your search

@@ -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
{