File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
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|--------------------------------------------------------------------------
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+ });
You can’t perform that action at this time.
0 commit comments