getting api working
This commit is contained in:
@@ -7,9 +7,9 @@ $params = array_merge(
|
||||
);
|
||||
|
||||
return [
|
||||
'id' => 'app-backend',
|
||||
'id' => 'calorie-api',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'controllerNamespace' => 'backend\controllers',
|
||||
'controllerNamespace' => 'api\controllers',
|
||||
'bootstrap' => ['log'],
|
||||
'modules' => [],
|
||||
'components' => [
|
||||
@@ -23,7 +23,7 @@ return [
|
||||
],
|
||||
'session' => [
|
||||
// this is the name of the session cookie used for login on the backend
|
||||
'name' => 'advanced-backend',
|
||||
'name' => 'calorie-api',
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
|
||||
Reference in New Issue
Block a user