From c958d08027b1f7735a179da1c15c95e49644a8ef Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Tue, 07 May 2024 10:35:48 +0200
Subject: [PATCH] creazione metodo add della classe router e creazione delle prime routes personalizzate

---
 src/router.php |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/router.php b/src/router.php
index e69de29..fbff562 100644
--- a/src/router.php
+++ b/src/router.php
@@ -0,0 +1,14 @@
+<?php
+
+class Router {
+    private array $routes = [];
+    
+    public function add(string $path, array $params = []): void {
+        $this->routes[] = [
+            "path"=> $path,
+            "params"=> $params
+        ];
+
+        
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0