HealthController constructor

HealthController([
  1. String? path
])

Creates a HealthController with an optional custom path for the health check endpoint. If no path is provided, it defaults to '/health'.

Implementation

HealthController([String? path]) : super(path ?? '/health') {
  on(Route.get('/'), _handleHealthCheck);
}