Skip to content

Commit 08d46cc

Browse files
author
Fariz Luqman
authored
Update routes.php
1 parent e8a1610 commit 08d46cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/routes.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| view files (home.php) into any directory within the project.
99
|
1010
*/
11-
Router::get('/', function() {
11+
Router::get('', function() {
1212
Viewer::file('home.php');
1313
});
1414

@@ -21,8 +21,8 @@
2121
| Try to go to /hello or /hello/yourname and see what it shows
2222
|
2323
*/
24-
Router::get('/hello', 'Controller\Hello@greetWorld');
25-
Router::get('/hello/(:any)', 'Controller\Hello@greetWithName');
24+
Router::get('hello', 'Controller\Hello@greetWorld');
25+
Router::get('hello/(:any)', 'Controller\Hello@greetWithName');
2626

2727
/*
2828
|--------------------------------------------------------------------------
@@ -33,6 +33,6 @@
3333
| URI into any file.
3434
|
3535
*/
36-
Router::get('/(:any)', function($match) {
36+
Router::get('(:any)', function($match) {
3737
Viewer::file($match);
38-
});
38+
});

0 commit comments

Comments
 (0)