Skip to content
Snippets Groups Projects
Commit 8acf7c23 authored by Muhammad Rifko Favian's avatar Muhammad Rifko Favian
Browse files

fix: routing get event

parent 44a2745d
No related merge requests found
...@@ -20,17 +20,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { ...@@ -20,17 +20,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
} elseif (isset($_GET["purchaseAction"])) { } elseif (isset($_GET["purchaseAction"])) {
$pembelianController->handleRequest(); $pembelianController->handleRequest();
} }
} elseif ($_SERVER["REQUEST_METHOD"] == "GET") { } elseif ($_SERVER["REQUEST_METHOD"] == "GET") {
if (isset($_GET["ticketAction"])) { if (isset($_GET["eventAction"]) && isset($_GET["eventId"])) {
$eventController->handleRequest();
} elseif (isset($_GET["ticketAction"])) {
$ticketController->handleRequest(); $ticketController->handleRequest();
} elseif (isset($_GET["userAction"])) { } elseif (isset($_GET["userAction"])) {
$userController->handleRequest(); $userController->handleRequest();
} }
} }
elseif ($_SERVER["REQUEST_METHOD"] == "GET") {
if (isset($_GET["eventAction"]) && isset($_GET["eventId"])) {
$eventController->handleRequest();
}
}
?> ?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment