Small refactor in #5153

This commit is contained in:
James Cole 2021-10-02 14:23:34 +02:00
parent b919a5705c
commit a14568c796
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<?php
/**
/*
* HealthcheckController.php
* Copyright (c) 2019 james@firefly-iii.org
* Copyright (c) 2021 https://github.com/ajgon
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
@ -20,8 +20,9 @@
*/
declare(strict_types=1);
namespace FireflyIII\Http\Controllers;
namespace FireflyIII\Http\Controllers\System;
use FireflyIII\Http\Controllers\Controller;
use Illuminate\Http\Response;
/**

View File

@ -38,9 +38,10 @@ Route::group(
);
Route::group(
['middleware' => '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']);
}
);