From d2959e82a15866b776e1c066a1442a0cf7351d51 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 28 Nov 2013 18:47:54 -0500 Subject: [PATCH] Redirect to /hardware to finish cleaning up re-routing from #88 --- app/routes.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/routes.php b/app/routes.php index 5569ece14a4f..59db888558d7 100755 --- a/app/routes.php +++ b/app/routes.php @@ -256,7 +256,11 @@ | */ -// default admin screen until we get a fancy dashboard up -Route::get('/', array('as' => 'hardware', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); -Route::get('reports', array('as' => 'reports', 'uses' => 'Controllers\Admin\AssetsController@getReports')); +// Redirect requests to / to the hardware section until we get a fancy dashboard set up +Route::get('/', function() +{ + return Redirect::to('hardware'); +}); +Route::get('/', array('as' => 'home', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); +Route::get('reports', array('as' => 'reports', 'uses' => 'Controllers\Admin\AssetsController@getReports'));