}, "customer/product/detail" => function () { if (isset($_SESSION["active"]) && $_SESSION["role"] == "customer") { if ($_SERVER["REQUEST_METHOD"] == "POST") { CustomerController::addToCart(); } else { CustomerController::productsDetail(); } } else { ViewHelper::redirect(BASE_URL); } }, "customer/cart" => function () { if (isset($_SESSION["active"]) && $_SESSION["role"] == "customer") { if ($_SERVER["REQUEST_METHOD"] == "POST") { CustomerController::addToCart(); } else { CustomerController::cart(); } } else { ViewHelper::redirect(BASE_URL); } }, "customer/cart/edit" => function () { if (isset($_SESSION["active"]) && $_SESSION["role"] == "customer") { if ($_SERVER["REQUEST_METHOD"] == "POST") { CustomerController::edit(); } else { ViewHelper::redirect(BASE_URL); } } else { ViewHelper::redirect(BASE_URL); } }, "customer/cart/delete" => function () {