Skip to content

Commit

Permalink
Improve route registration for ping (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylor14 authored Jan 12, 2024
1 parent fb3bca4 commit c9552f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HealthCheckServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function boot()
]);
}

$this->app->make('router')->get($this->withBasePath(config('healthcheck.route-paths.ping', '/ping')), PingController::class);
$this->app->make('router')->get($this->withBasePath(config('healthcheck.route-paths.ping', '/ping')), [
'middleware' => config('healthcheck.middleware'),
'uses' => PingController::class,
'as' => 'ping-check',
]);
}

protected function configure()
Expand Down

0 comments on commit c9552f0

Please sign in to comment.