changed application file structure and routing definitions.
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is the public API of your application. To add functionality to your
|
||||
| application, you just add to the array located in this file.
|
||||
|
|
||||
| Simply tell Laravel the HTTP verbs and request URIs it should respond to.
|
||||
| You may respond to the GET, POST, PUT, or DELETE verbs. Enjoy the simplicity
|
||||
| and elegance of RESTful routing.
|
||||
|
|
||||
| Here is how to respond to a simple GET request to http://example.com/hello:
|
||||
|
|
||||
| 'GET /hello' => function()
|
||||
| {
|
||||
| return 'Hello World!';
|
||||
| }
|
||||
|
|
||||
| You can even respond to more than one URI:
|
||||
|
|
||||
| 'GET /hello, GET /world' => function()
|
||||
| {
|
||||
| return 'Hello World!';
|
||||
| }
|
||||
|
|
||||
| Allow URI wildcards using the (:num) or (:any) place-holders:
|
||||
|
|
||||
| 'GET /hello/(:any)' => function($name)
|
||||
| {
|
||||
| return "Welcome, $name.";
|
||||
| }
|
||||
|
|
||||
| Ready to learn more? Check out: http://laravel.com/docs/start/routes
|
||||
|
|
||||
*/
|
||||
|
||||
'GET /' => function()
|
||||
{
|
||||
return View::make('home/index');
|
||||
},
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user