From 09642a795a175fd92dd295e96af9b8ae96d454d9 Mon Sep 17 00:00:00 2001 From: Jan Oppolzer Date: Wed, 7 Aug 2024 10:29:01 +0200 Subject: [PATCH] Fix health check --- bootstrap/app.php | 2 +- resources/views/health-up.blade.php | 40 +++++++++++++++++++++++++++++ routes/web.php | 2 ++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 resources/views/health-up.blade.php diff --git a/bootstrap/app.php b/bootstrap/app.php index e91144d..c9b61f5 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -9,7 +9,7 @@ ->withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', - health: '/up', + // health: '/up', ) ->withMiddleware(function (Middleware $middleware) { $middleware->web(append: [Localization::class]); diff --git a/resources/views/health-up.blade.php b/resources/views/health-up.blade.php new file mode 100644 index 0000000..5b1a28c --- /dev/null +++ b/resources/views/health-up.blade.php @@ -0,0 +1,40 @@ + + + + + + + + {{ config('app.name') }} + @vite('resources/css/app.css') + + + +
+
+
+
+ + +
+ +
+

Application up

+ +

+ HTTP request received. + + @if (defined('LARAVEL_START')) + Response successfully rendered in {{ round((microtime(true) - LARAVEL_START) * 1000) }}ms. + @endif +

+
+
+
+
+ + + diff --git a/routes/web.php b/routes/web.php index 9728029..af16815 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,6 +14,8 @@ return redirect()->back(); }); +Route::view('up', 'health-up'); + Route::view('/', 'welcome'); Route::view('login', 'mfa', ['e' => []]); Route::get('error', function () {