<?php

declare(strict_types=1);

require '../src/before_main.php';
\tts\site_helper::set_all_projects(['mockup','ex','live']);
\tts\site_helper::set_default_project("mockup");

$PHPUNIT_Testing = false;
\tts\site_helper::init(PROJECT_BASE_DIR, $_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD'], $PHPUNIT_Testing);

require '../src/main.php';

$returned_route = \tts\router::execute();

if ($returned_route["found"] === false) {
    $app = new \tts\app();
    $app->load_controller();
}