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']); + } );