mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Run artisan optimize after composer install (#11465)
* Remove unused routes Prevents route:cache from working also * Run artisan optimize after composer install Helps cleaning up issues with upgrades, and also makes laravel a bit faster * Update composer.json Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -16,10 +16,6 @@ Auth::routes();
|
||||
|
||||
// WebUI
|
||||
Route::group(['middleware' => ['auth', '2fa'], 'guard' => 'auth'], function () {
|
||||
// Test
|
||||
Route::get('/vue/{sub?}', function () {
|
||||
return view('vue');
|
||||
})->where('sub', '.*');
|
||||
|
||||
// pages
|
||||
Route::resource('device-groups', 'DeviceGroupController');
|
||||
@@ -51,9 +47,6 @@ Route::group(['middleware' => ['auth', '2fa'], 'guard' => 'auth'], function () {
|
||||
|
||||
// old route redirects
|
||||
Route::permanentRedirect('poll-log', 'poller/log');
|
||||
Route::get('settings/sub={tab}', function ($tab) {
|
||||
return redirect("settings/$tab");
|
||||
});
|
||||
|
||||
// Two Factor Auth
|
||||
Route::group(['prefix' => '2fa', 'namespace' => 'Auth'], function () {
|
||||
@@ -149,11 +142,6 @@ Route::group(['middleware' => ['auth', '2fa'], 'guard' => 'auth'], function () {
|
||||
// demo helper
|
||||
Route::permanentRedirect('demo', '/');
|
||||
|
||||
// blank page, dummy page for external code using Laravel::bootWeb()
|
||||
Route::any('/blank', function () {
|
||||
return '';
|
||||
});
|
||||
|
||||
// Legacy routes
|
||||
Route::any('/{path?}', 'LegacyController@index')
|
||||
->where('path', '^((?!_debugbar).)*');
|
||||
|
Reference in New Issue
Block a user