Skip to content

Commit

Permalink
Update routes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Fariz Luqman authored Jul 12, 2016
1 parent e8a1610 commit 08d46cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| view files (home.php) into any directory within the project.
|
*/
Router::get('/', function() {
Router::get('', function() {
Viewer::file('home.php');
});

Expand All @@ -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');

/*
|--------------------------------------------------------------------------
Expand All @@ -33,6 +33,6 @@
| URI into any file.
|
*/
Router::get('/(:any)', function($match) {
Router::get('(:any)', function($match) {
Viewer::file($match);
});
});

0 comments on commit 08d46cc

Please sign in to comment.