add user-questionnaire, response, question, answers to api
This commit is contained in:
@ -38,16 +38,28 @@ return [
|
||||
],
|
||||
|
||||
'components' => [
|
||||
'response' => [
|
||||
'formatters' => [
|
||||
'json' => [
|
||||
'class' => 'yii\web\JsonResponseFormatter',
|
||||
'prettyPrint' => YII_DEBUG,
|
||||
'encodeOptions' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'request' => [
|
||||
'csrfParam' => '_csrf-frontend',
|
||||
'baseUrl' => '',
|
||||
'parsers' => [
|
||||
'application/json' => 'yii\web\JsonParser',
|
||||
'application/xml' => 'yii\web\XmlParser',
|
||||
],
|
||||
],
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\User',
|
||||
'enableAutoLogin' => true,
|
||||
|
||||
'identityCookie' => ['name' => '_identity-frontend', 'httpOnly' => true],
|
||||
],
|
||||
'session' => [
|
||||
@ -66,7 +78,6 @@ return [
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
|
||||
'urlManager' => [
|
||||
'enablePrettyUrl' => true,
|
||||
'showScriptName' => false,
|
||||
|
Reference in New Issue
Block a user