Код: Выделить всё
cabinet/controllers/UserCabinetController.php
Код: Выделить всё
"message": "Method Not Allowed.
This URL can only handle the following request methods: GET, HEAD.",
Код: Выделить всё
app/controllers
Код в UrlManager:
Код: Выделить всё
[
'class' => 'yii\rest\UrlRule',
'controller' => ['user-cabinet'],
'patterns' => [
'POST' => 'index',
],
'pluralize' => false
],