From 21de70eae059061dec2df437b5435a586bcf0341 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Mon, 27 May 2024 12:23:05 +0200
Subject: [PATCH] (parte 146)

---
 public/index.php |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/public/index.php b/public/index.php
index 8da6886..ae4581c 100644
--- a/public/index.php
+++ b/public/index.php
@@ -3,6 +3,7 @@
 declare(strict_types= 1);
 
 define ("ROOT_PATH", dirname(__DIR__));
+
 spl_autoload_register(function ($class) {
     require ROOT_PATH . "/src/". str_replace("\\", "/", $class). ".php";
  });
@@ -14,13 +15,6 @@
 
 set_exception_handler("Framework\ErrorHandler::handleException");
 
-
-$path = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
-if ($path === false) {
-    throw new UnexpectedValueException("Malformed URL: {$_SERVER["REQUEST_URI"]}");
-}
-
-$segments = explode("/", $path);
 
 $router = require ROOT_PATH . "/config/routes.php";
 

--
Gitblit v1.8.0