Summary Files Commits Branches @commit @diff @stats
path: root / src / index.php
diff options
context:
space:
mode:
1 files changed, 1 insertions, 3 deletions
-rw-r--r--src/index.php4
diff --git a/src/index.php b/src/index.php
index 26089e9..70da9a1 100644
--- a/src/index.php
+++ b/src/index.php
@@ -7,14 +7,12 @@ include_once("controllers/LandingController.php");
* Thanks https://www.taniarascia.com/the-simplest-php-router/
*/
-$landingController = new LandingController();
-
$request = $_SERVER['REQUEST_URI'];
switch ($request) {
case "":
case "/":
- $landingController->invoke();
+ LandingController::invoke();
break;
default:
http_response_code(404);