diff --git a/backend/config/main.php b/backend/config/main.php index d6663eb..bed1c45 100644 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -17,6 +17,9 @@ 'request' => [ 'baseUrl' => '/rest', 'csrfParam' => '_csrf-backend', + 'parsers' => [ + 'application/json' => 'yii\web\JsonParser', + ], ], 'user' => [ 'identityClass' => 'common\models\User', @@ -50,11 +53,12 @@ 'enableStrictParsing' => true, 'showScriptName' => false, 'rules' => [ - [ 'class' => 'yii\rest\UrlRule', - 'controller' => 'call', - 'extraPatterns' => [ - 'GET search' => 'search', - ] + [ + 'class' => 'yii\rest\UrlRule', + 'controller' => 'call', + 'extraPatterns' => [ + 'GET search' => 'search', + ], ], ], ], diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index c33a833..ff7a092 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -22,6 +22,7 @@ ID Company + Date Status Duration @@ -30,6 +31,7 @@ {{call.id}} {{call.company}} + {{call.calldate}} {{call.status}} {{call.duration}} -- libgit2 0.21.4