From a14568c79646533657e780a448c4ef84b7126d36 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 2 Oct 2021 14:23:34 +0200 Subject: [PATCH] Small refactor in #5153 --- .../Controllers/{ => System}/HealthcheckController.php | 7 ++++--- routes/web.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) rename app/Http/Controllers/{ => System}/HealthcheckController.php (88%) diff --git a/app/Http/Controllers/HealthcheckController.php b/app/Http/Controllers/System/HealthcheckController.php similarity index 88% rename from app/Http/Controllers/HealthcheckController.php rename to app/Http/Controllers/System/HealthcheckController.php index edbb8b52aa..dd5c24cf82 100644 --- a/app/Http/Controllers/HealthcheckController.php +++ b/app/Http/Controllers/System/HealthcheckController.php @@ -1,7 +1,7 @@ 'binders-only'], + ['middleware' => 'binders-only', 'namespace' => 'FireflyIII\Http\Controllers\System'], static function () { Route::get('offline', fn () => view('errors.offline')); + Route::get('health', ['uses' => 'HealthcheckController@check', 'as' => 'healthcheck']); } ); @@ -69,8 +70,7 @@ Route::group( Route::get('profile/confirm-email-change/{token}', ['uses' => 'ProfileController@confirmEmailChange', 'as' => 'profile.confirm-email-change']); Route::get('profile/undo-email-change/{token}/{oldAddressHash}', ['uses' => 'ProfileController@undoEmailChange', 'as' => 'profile.undo-email-change']); - // Healthcheck route: - Route::get('health', ['uses' => 'HealthcheckController@check', 'as' => 'healthcheck']); + } );