This commit is contained in:
Halbe Bruno
2025-12-05 19:40:39 -03:00
commit f37bc712e6
4312 changed files with 359196 additions and 0 deletions

21
public/index.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
session_start();
use App\Core\Router;
use Dotenv\Dotenv;
// Load Env
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->safeLoad();
// Init Router
$router = new Router();
// Load Routes
require_once __DIR__ . '/../app/routes.php';
// Dispatch
$router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);