aboutsummaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2018-08-30 04:40:53 -0400
committerThedro Neely <thedroneely@gmail.com>2018-08-30 04:40:53 -0400
commit2659205908bd5cab508f4ff817123673e078ab74 (patch)
treee455f36b124e9b98f7005e6d4310b71881734623 /public/index.php
downloadedwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.tar.gz
edwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.tar.bz2
edwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.zip
Initialize Repo: First Commit
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
new file mode 100644
index 0000000..1d5fad8
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,11 @@
+<?php
+
+/* require core files */
+require '../bootstrap/Bootstrap.php';
+
+/* create new router */
+$router = new Router;
+
+/* direct routes as defined */
+require Router::load('../bootstrap/Routes.php')
+ ->direct(Request::uri(), Request::method());