2014-12-04 21:02:23 +00:00
|
|
|
<?php
|
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function () {
|
2014-12-20 18:54:33 +00:00
|
|
|
// Dashboard
|
2014-12-04 21:02:23 +00:00
|
|
|
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']);
|
2014-12-13 12:22:06 +00:00
|
|
|
|
2014-12-20 18:54:33 +00:00
|
|
|
// Components
|
2014-12-20 18:53:52 +00:00
|
|
|
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');
|
2014-12-20 20:40:48 +00:00
|
|
|
Route::get('components/{component}/edit', 'DashComponentController@showEditComponent');
|
|
|
|
Route::post('components/{component}/edit', 'DashComponentController@updateComponentAction');
|
2014-12-13 12:43:11 +00:00
|
|
|
|
2014-12-20 18:54:33 +00:00
|
|
|
// Incidents
|
2014-12-20 18:53:52 +00:00
|
|
|
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');
|
2014-12-20 20:59:20 +00:00
|
|
|
Route::get('incidents/template', ['as' => 'dashboard.incidents.template', 'uses' => 'DashIncidentController@showAddIncidentTemplate']);
|
2014-12-20 20:58:10 +00:00
|
|
|
Route::post('incidents/template', 'DashIncidentController@createIncidentTemplateAction');
|
2014-12-20 17:16:53 +00:00
|
|
|
|
2014-12-20 18:54:33 +00:00
|
|
|
// Metrics
|
2014-12-06 10:18:26 +00:00
|
|
|
Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showMetrics']);
|
2014-12-20 18:54:33 +00:00
|
|
|
|
|
|
|
// Notifications
|
2014-12-13 11:51:28 +00:00
|
|
|
Route::get('notifications', ['as' => 'dashboard.notifications', 'uses' => 'DashboardController@showNotifications']);
|
2014-12-20 18:54:33 +00:00
|
|
|
|
|
|
|
// Settings
|
2014-12-20 18:53:52 +00:00
|
|
|
Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashSettingsController@showSettings']);
|
|
|
|
Route::post('settings', 'DashSettingsController@postSettings');
|
2014-12-21 10:14:58 +00:00
|
|
|
|
|
|
|
// User Settings
|
|
|
|
Route::get('user', ['as' => 'dashboard.user', 'uses' => 'DashUserController@showUser']);
|
|
|
|
Route::post('user', 'DashUserController@postUser');
|
2014-12-04 22:50:58 +00:00
|
|
|
});
|