From 9bf61c8bbe9f0ef5208f0f555cff3348593f81ea Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 15 Oct 2024 00:33:35 +0000 Subject: [PATCH] Shift cleanup --- app/Providers/AppServiceProvider.php | 2 -- config/app.php | 1 - routes/api-admin.php | 48 ++++++++++++++-------------- routes/api-application.php | 48 ++++++++++++++-------------- routes/console.php | 1 - 5 files changed, 48 insertions(+), 52 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 45a35a888cf..6a2645fa1c8 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -43,7 +43,5 @@ public function bootRoute(): void return Server::query()->where(strlen($value) === 8 ? 'uuid_short' : 'uuid', $value) ->firstOrFail(); }); - - } } diff --git a/config/app.php b/config/app.php index 0e109514862..bafe1e443aa 100644 --- a/config/app.php +++ b/config/app.php @@ -7,7 +7,6 @@ 'version' => 'canary', - 'aliases' => Facade::defaultAliases()->merge([ // Custom Facades 'Activity' => App\Facades\Activity::class, diff --git a/routes/api-admin.php b/routes/api-admin.php index c4534a593ec..c807299b9c6 100644 --- a/routes/api-admin.php +++ b/routes/api-admin.php @@ -151,32 +151,32 @@ Route::post('/', [Admin\ServerController::class, 'store']); Route::prefix('/{server}')->middleware(ValidateServerStatusMiddleware::class)->group(function () { - Route::get('/', [Admin\ServerController::class, 'show']) - ->withoutMiddleware( - ValidateServerStatusMiddleware::class, - ); - Route::patch('/', [Admin\ServerController::class, 'update']) - ->withoutMiddleware( - ValidateServerStatusMiddleware::class, - ); - Route::delete('/', [Admin\ServerController::class, 'destroy']); + Route::get('/', [Admin\ServerController::class, 'show']) + ->withoutMiddleware( + ValidateServerStatusMiddleware::class, + ); + Route::patch('/', [Admin\ServerController::class, 'update']) + ->withoutMiddleware( + ValidateServerStatusMiddleware::class, + ); + Route::delete('/', [Admin\ServerController::class, 'destroy']); - Route::prefix('/settings')->group(function () { - Route::patch( - '/build', - [Admin\ServerController::class, 'updateBuild'], - ); + Route::prefix('/settings')->group(function () { + Route::patch( + '/build', + [Admin\ServerController::class, 'updateBuild'], + ); - Route::post( - '/suspend', - [Admin\ServerController::class, 'suspend'], - ); - Route::post( - '/unsuspend', - [Admin\ServerController::class, 'unsuspend'], - ); - }); - } + Route::post( + '/suspend', + [Admin\ServerController::class, 'suspend'], + ); + Route::post( + '/unsuspend', + [Admin\ServerController::class, 'unsuspend'], + ); + }); + } ); }); diff --git a/routes/api-application.php b/routes/api-application.php index 5952576f0ef..a30a920af30 100644 --- a/routes/api-application.php +++ b/routes/api-application.php @@ -151,32 +151,32 @@ Route::post('/', [Admin\ServerController::class, 'store']); Route::prefix('/{server}')->middleware(ValidateServerStatusMiddleware::class)->group(function () { - Route::get('/', [Admin\ServerController::class, 'show']) - ->withoutMiddleware( - ValidateServerStatusMiddleware::class, - ); - Route::patch('/', [Admin\ServerController::class, 'update']) - ->withoutMiddleware( - ValidateServerStatusMiddleware::class, - ); - Route::delete('/', [Admin\ServerController::class, 'destroy']); + Route::get('/', [Admin\ServerController::class, 'show']) + ->withoutMiddleware( + ValidateServerStatusMiddleware::class, + ); + Route::patch('/', [Admin\ServerController::class, 'update']) + ->withoutMiddleware( + ValidateServerStatusMiddleware::class, + ); + Route::delete('/', [Admin\ServerController::class, 'destroy']); - Route::prefix('/settings')->group(function () { - Route::patch( - '/build', - [Admin\ServerController::class, 'updateBuild'], - ); + Route::prefix('/settings')->group(function () { + Route::patch( + '/build', + [Admin\ServerController::class, 'updateBuild'], + ); - Route::post( - '/suspend', - [Admin\ServerController::class, 'suspend'], - ); - Route::post( - '/unsuspend', - [Admin\ServerController::class, 'unsuspend'], - ); - }); - } + Route::post( + '/suspend', + [Admin\ServerController::class, 'suspend'], + ); + Route::post( + '/unsuspend', + [Admin\ServerController::class, 'unsuspend'], + ); + }); + } ); }); diff --git a/routes/console.php b/routes/console.php index 0da38635703..0484668efa5 100644 --- a/routes/console.php +++ b/routes/console.php @@ -15,7 +15,6 @@ $this->comment(Inspiring::quote()); })->purpose('Display an inspiring quote')->hourly(); - Schedule::command('queue:prune-batches')->daily(); if (config('backups.prune_age')) {