From 8068a88b87f5f983d8203cf8506610729bd23fa7 Mon Sep 17 00:00:00 2001 From: Michael Hasselbring Date: Wed, 3 Aug 2011 08:33:37 -0500 Subject: [PATCH] removed routes directory --- application/routes/filters.php | 70 ---------------------------------- application/routes/routes.php | 47 ----------------------- 2 files changed, 117 deletions(-) delete mode 100644 application/routes/filters.php delete mode 100644 application/routes/routes.php diff --git a/application/routes/filters.php b/application/routes/filters.php deleted file mode 100644 index f867d63f..00000000 --- a/application/routes/filters.php +++ /dev/null @@ -1,70 +0,0 @@ - function() - | { - | return 'Filtered!'; - | } - | - | Next, attach the filter to a route: - | - | 'GET /' => array('before' => 'simple_filter', 'do' => function() - | { - | return 'Hello World!'; - | }) - | - | Now every requests to http://example.com will return "Filtered!", since - | the filter is overriding the route action by returning a value. - | - | To make your life easier, we have built authentication and CSRF filters - | that are ready to attach to your routes. Enjoy. - | - | For more information, check out: http://laravel.com/docs/start/routes#filters - | - */ - - 'before' => function() - { - // Do stuff before every request is executed. - }, - - - 'after' => function($response) - { - // Do stuff after every request is executed. - }, - - - 'auth' => function() - { - return ( ! Auth::check()) ? Redirect::to_login() : null; - }, - - - 'csrf' => function() - { - return (Input::get('csrf_token') !== Form::raw_token()) ? Response::error('500') : null; - }, - -); \ No newline at end of file diff --git a/application/routes/routes.php b/application/routes/routes.php deleted file mode 100644 index 17a6cfa7..00000000 --- a/application/routes/routes.php +++ /dev/null @@ -1,47 +0,0 @@ - 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'); - }, - -); \ No newline at end of file