mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-25 12:13:33 +01:00
Formatting of the dashboard routes
This commit is contained in:
parent
36d283d028
commit
85b02e635c
@ -1,20 +1,27 @@
|
||||
<?php
|
||||
|
||||
Route::group(['before' => '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');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user