<?php

declare(strict_types=1);

/*
 * Sar - single front controller.
 * All HTTP requests should be rewritten to this file
 * (see deploy/nginx.conf.example or public/.htaccess).
 */

require dirname(__DIR__) . '/app/bootstrap.php';

use App\Core\Router;

$router = new Router();
(require SAR_ROOT . '/app/routes.php')($router);

$router->dispatch();
