--- /dev/null
+<?php
+
+require_once(__DIR__.'/../init.php');
+if (! defined("TESTING")){
+ header('Content-Type: text/html; charset=utf-8');
+ if (isset($_SERVER['HTTP_ORIGIN'])) {
+ header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
+ }
+ header("Access-Control-Allow-Credentials: true");
+ header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
+ header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization, Cookie, DNT, X-Mx-ReqToken, Keep-Alive, User-Agent, If-Modified-Since, Cache-Control");
+ session_start();
+}
+
+$frontController = new FrontController();
+$frontController->setServer($_SERVER);
+$frontController->setGet($_GET);
+$frontController->setPost($_POST);
+if (! defined('TESTING')) {
+ $frontController->setSession($_SESSION);
+}
+$frontController->setInput(file_get_contents("php://input"));
+$frontController->go();