From 85b02e635c4b65f2f6b0947fc04f051729bd6a21 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 20 Dec 2014 18:54:33 +0000 Subject: [PATCH] Formatting of the dashboard routes --- app/routes/dashboard.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/routes/dashboard.php b/app/routes/dashboard.php index 33c454e0..0c9ed7a3 100644 --- a/app/routes/dashboard.php +++ b/app/routes/dashboard.php @@ -1,20 +1,27 @@ 'auth', 'prefix' => 'dashboard'], function() { + // Dashboard Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']); + // Components Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashComponentController@showComponents']); Route::get('components/add', ['as' => 'dashboard.components.add', 'uses' => 'DashComponentController@showAddComponent']); Route::post('components/add', 'DashComponentController@createComponentAction'); Route::get('components/{component}/delete', 'DashComponentController@deleteComponentAction'); + // Incidents Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashIncidentController@showIncidents']); Route::get('incidents/add', ['as' => 'dashboard.incidents.add', 'uses' => 'DashIncidentController@showAddIncident']); Route::post('incidents/add', 'DashIncidentController@createIncidentAction'); + // Metrics Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showMetrics']); + + // Notifications Route::get('notifications', ['as' => 'dashboard.notifications', 'uses' => 'DashboardController@showNotifications']); - Route::get('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showStatusPage']); + + // Settings Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashSettingsController@showSettings']); Route::post('settings', 'DashSettingsController@postSettings'); });