<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE, HEAD");
header("Access-Control-Allow-Headers:*");
header('Strict-Transport-Security:max-age=180');
header('X-Download-Options: noopen');
header('X-Permitted-Cross-Domain-Policies: none');
require(__DIR__ . '/../../vendor/autoload.php');

require __DIR__.'/../../Yii.php';

require(__DIR__ . '/../../common/config/bootstrap.php');
require(__DIR__ . '/../../api/config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
    require(__DIR__ . '/../../common/config/main.php'),
    require(__DIR__ . '/../../common/config/main-local.php'),
    require(__DIR__ . '/../../api/config/main.php')
);


$application = new yii\web\Application($config);
$application->run();
