Moved SAML gui settings routes to web.php
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0341335d14
commit
44a7bdbfb5
2 changed files with 19 additions and 5 deletions
|
@ -49,10 +49,6 @@ class SamlServiceProvider extends ServiceProvider
|
||||||
'uses' => 'Auth\SamlController@login', ]
|
'uses' => 'Auth\SamlController@login', ]
|
||||||
);
|
);
|
||||||
|
|
||||||
Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth', 'authorize:superuser']], function () {
|
|
||||||
Route::get('saml', ['as' => 'settings.saml.index', 'uses' => 'SettingsController@getSamlSettings']);
|
|
||||||
Route::post('saml', ['as' => 'settings.saml.save', 'uses' => 'SettingsController@postSamlSettings']);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -287,6 +287,19 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
|
||||||
->push(trans('admin/settings/general.login'), route('settings.logins.index')));
|
->push(trans('admin/settings/general.login'), route('settings.logins.index')));
|
||||||
|
|
||||||
|
|
||||||
|
// SAML
|
||||||
|
Route::get('/saml', [SettingsController::class, 'getSamlSettings'])
|
||||||
|
->name('settings.saml.index')
|
||||||
|
->breadcrumbs(fn (Trail $trail) =>
|
||||||
|
$trail->parent('settings.index')
|
||||||
|
->push(trans('admin/settings/general.saml_title'), route('settings.saml.index')));
|
||||||
|
|
||||||
|
Route::post('/saml', [SettingsController::class, 'postSamlSettings'])
|
||||||
|
->name('settings.saml.save');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Backups
|
// Backups
|
||||||
Route::group(['prefix' => 'backups', 'middleware' => 'auth'], function () {
|
Route::group(['prefix' => 'backups', 'middleware' => 'auth'], function () {
|
||||||
Route::get('download/{filename}',
|
Route::get('download/{filename}',
|
||||||
|
@ -321,11 +334,16 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
|
||||||
|
|
||||||
Route::resource('groups', GroupsController::class);
|
Route::resource('groups', GroupsController::class);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This breadcrumb is repeated for groups in the BreadcrumbServiceProvider, since groups uses resource routes
|
||||||
|
* and that servcie provider cannot see the breadcrumbs defined below
|
||||||
|
*/
|
||||||
Route::get('/', [SettingsController::class, 'index'])
|
Route::get('/', [SettingsController::class, 'index'])
|
||||||
->name('settings.index')
|
->name('settings.index')
|
||||||
->breadcrumbs(fn (Trail $trail) =>
|
->breadcrumbs(fn (Trail $trail) =>
|
||||||
$trail->parent('home')
|
$trail->parent('home')
|
||||||
->push(trans('general.admin'), route('settings.index')));;
|
->push(trans('general.admin'), route('settings.index')));
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue