<?php
error_reporting(E_ALL);
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
defined('LOGIN_EXP_TIME') or define('LOGIN_EXP_TIME', 3600*24);
defined('UPLOAD_PATH') or define('UPLOAD_PATH', __DIR__.'/../../');
header("Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type,Content-Length, Accept, Authorization");
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:PUT,POST,GET,DELETE,OPTIONS");
require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../../config/webs.php');
(new yii\web\Application($config))->run();
