Skip to content

Commit

Permalink
Shift cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift committed Oct 15, 2024
1 parent 19b662e commit 9bf61c8
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 52 deletions.
2 changes: 0 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,5 @@ public function bootRoute(): void
return Server::query()->where(strlen($value) === 8 ? 'uuid_short' : 'uuid', $value)
->firstOrFail();
});


}
}
1 change: 0 additions & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

'version' => 'canary',


'aliases' => Facade::defaultAliases()->merge([
// Custom Facades
'Activity' => App\Facades\Activity::class,
Expand Down
48 changes: 24 additions & 24 deletions routes/api-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
);
});
}
);
});

Expand Down
48 changes: 24 additions & 24 deletions routes/api-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
);
});
}
);
});

Expand Down
1 change: 0 additions & 1 deletion routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 9bf61c8

Please sign in to comment.