Skip to content

Commit

Permalink
Added routing file for php inbuilt webserver requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffe1neAdd1ct committed May 29, 2015
1 parent 6450b06 commit 2c3ab5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
if (file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])) {
return false; // serve the requested resource as-is.
} else {
require_once 'index.php';
}

0 comments on commit 2c3ab5a

Please sign in to comment.