diff --git a/public/index.php b/public/index.php index b3205ab..e43010c 100644 --- a/public/index.php +++ b/public/index.php @@ -107,8 +107,6 @@ function getRoutes(): AltoRouter { $ar->map("GET", "/team/members/remove", Action::auth(fn(SessionHandle $s) => getTeamController()->displayDeleteMember($s))); $ar->map("POST", "/team/members/remove", Action::auth(fn(SessionHandle $s) => getTeamController()->deleteMember($_POST, $s))); - //temp - $ar->map("GET", "/test", Action::auth(fn(SessionHandle $s) => getUserController()->homeTwig($s))); return $ar; } diff --git a/src/Core/Model/TeamModel.php b/src/Core/Model/TeamModel.php index c2df190..3357553 100644 --- a/src/Core/Model/TeamModel.php +++ b/src/Core/Model/TeamModel.php @@ -80,9 +80,7 @@ class TeamModel { } public function getAll(int $user) { - $res = $this->teams->getAll($user); - var_dump($res); - return $res; + return $this->teams->getAll($user); } }