Skip to content

Commit

Permalink
fix: dont use web middleware on health endpoint (#52088)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmanders authored Jul 11, 2024
1 parent 7bd526e commit 1225a2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected function buildRoutingCallback(array|string|null $web,
}

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

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

0 comments on commit 1225a2f

Please sign in to comment.