commit | author | age | ||
c4c562 | 1 | <?php |
0c028b | 2 | |
c54720 | 3 | require "src/controllers/products.php"; |
F | 4 | $controller = new Products; |
7bc6e3 | 5 | $action = $_GET["action"]; |
F | 6 | |
7 | ||
8 | if($action === "index") { | |
9 | $controller->index(); | |
10 | }elseif($action === "show") { | |
11 | $controller->show(); | |
12 | } | |
13 |