diff --git a/frontend/modules/api/controllers/ReportsController.php b/frontend/modules/api/controllers/ReportsController.php new file mode 100644 index 0000000..42ffdb0 --- /dev/null +++ b/frontend/modules/api/controllers/ReportsController.php @@ -0,0 +1,39 @@ + \yii\filters\ContentNegotiator::className(), + 'formats' => [ + 'application/json' => \yii\web\Response::FORMAT_JSON, + ], + ], + 'corsFilter' => [ + 'class' => GsCors::class, + 'cors' => [ + 'Origin' => ['*'], + //'Access-Control-Allow-Credentials' => true, + 'Access-Control-Allow-Headers' => [ + 'Content-Type', + 'Access-Control-Allow-Headers', + 'Authorization', + 'X-Requested-With' + ], + ] + ] + ]; + } + + public function actionIndex() + { + + } + +}