Skip to content

Commit 1225a2f

Browse files
authored
fix: dont use web middleware on health endpoint (#52088)
1 parent 7bd526e commit 1225a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Configuration/ApplicationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected function buildRoutingCallback(array|string|null $web,
203203
}
204204

205205
if (is_string($health)) {
206-
Route::middleware('web')->get($health, function () {
206+
Route::get($health, function () {
207207
Event::dispatch(new DiagnosingHealth);
208208

209209
return View::file(__DIR__.'/../resources/health-up.blade.php');

0 commit comments

Comments
 (0)