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:
Jellyfrog
2020-05-15 04:10:03 +02:00
committed by GitHub
parent e87f590232
commit ec57d3b669
7 changed files with 12 additions and 65 deletions

View File

@@ -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).)*');