Working on routing and providers.
This commit is contained in:
@@ -4,19 +4,17 @@ class HomeController {
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Home Controller
|
||||
| Home Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish to use controllers instead of, or in addition to, Closure
|
||||
| based routes. That's great! Here is an example controller method to
|
||||
| get you started. To route to this controller, just add the route:
|
||||
|
|
||||
| $router->get('/', 'HomeController@index');
|
||||
| Controller methods are called when a request enters the application
|
||||
| with their assigned URI. The URI a method responds to may be set
|
||||
| via simple annotations. Here is an example to get you started!
|
||||
|
|
||||
*/
|
||||
|
||||
/**
|
||||
* @Get("/", as="home")
|
||||
* @Get("/")
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user