diff --git a/index.php b/index.php index 3209fe5..25219ce 100644 --- a/index.php +++ b/index.php @@ -50,19 +50,17 @@ Route::add('/index.php', function() { }); // Simple test route that simulates static html file -// TODO: Fix this for some web servers -Route::add('/blog/([a-z-0-9-]*)', function($slug) { - navi(); - include('include-example.php'); -}); - -// This example shows how to include files and how to push data to them -// TODO: Fix this for some web servers Route::add('/test.html', function() { navi(); echo 'Hello from test.html'; }); +// This example shows how to include files and how to push data to them +Route::add('/blog/([a-z-0-9-]*)', function($slug) { + navi(); + include('include-example.php'); +}); + // This route is for debugging only // It simply prints out some php infos // Do not use this route on production systems!