mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-18 07:46:01 +02:00
Implemented color filter
This commit is contained in:
@@ -53,9 +53,7 @@ final class Router implements RouterInterface
|
||||
$productController = new Product($this->core);
|
||||
switch ($this->get['action']) {
|
||||
case 'list':
|
||||
return $productController->list();
|
||||
case 'color':
|
||||
return $productController->colorFilter($this->get['color']);
|
||||
return $productController->list(($this->get['color'])?$this->get['color']:null);
|
||||
}
|
||||
case 'order':
|
||||
$orderController = new Order($this->core);
|
||||
|
Reference in New Issue
Block a user