diff --git a/app/routes.php b/app/routes.php index 8e029b9..f7265ce 100644 --- a/app/routes.php +++ b/app/routes.php @@ -8,7 +8,7 @@ | view files (home.php) into any directory within the project. | */ -Router::get('/', function() { +Router::get('', function() { Viewer::file('home.php'); }); @@ -21,8 +21,8 @@ | Try to go to /hello or /hello/yourname and see what it shows | */ -Router::get('/hello', 'Controller\Hello@greetWorld'); -Router::get('/hello/(:any)', 'Controller\Hello@greetWithName'); +Router::get('hello', 'Controller\Hello@greetWorld'); +Router::get('hello/(:any)', 'Controller\Hello@greetWithName'); /* |-------------------------------------------------------------------------- @@ -33,6 +33,6 @@ | URI into any file. | */ -Router::get('/(:any)', function($match) { +Router::get('(:any)', function($match) { Viewer::file($match); -}); \ No newline at end of file +});