aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/index.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/public/index.php b/public/index.php
index 1d5fad8..4f61001 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,11 +1,8 @@
<?php
-/* require core files */
+/* start application */
require '../bootstrap/Bootstrap.php';
-/* create new router */
-$router = new Router;
-
-/* direct routes as defined */
+/* load routes */
require Router::load('../bootstrap/Routes.php')
->direct(Request::uri(), Request::method());