aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-01-21 07:06:37 -0500
committerThedro Neely <thedroneely@gmail.com>2019-01-21 07:06:37 -0500
commit2d28316ca7836cf79d8c6b570c63bb2f310b0f78 (patch)
treea3022a25720aba5906bc3661a26fc82f6c75dc76 /public
parent43204f477968ca952dde75065c9ed76464c75c2c (diff)
downloadedwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.tar.gz
edwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.tar.bz2
edwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.zip
bootstrap/Bootstrap: Allow multiple entry points
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());