Allow public access to the dev/health url and change response to 500
This commit is contained in:
parent
a19fcb42e6
commit
c24c52e77f
|
@ -19,8 +19,7 @@ class DevHealthController extends Controller
|
||||||
// health check does not require permission to run
|
// health check does not require permission to run
|
||||||
|
|
||||||
$checker = new EnvironmentChecker('health', 'Site health');
|
$checker = new EnvironmentChecker('health', 'Site health');
|
||||||
$checker->init('');
|
$checker->setErrorCode(500);
|
||||||
$checker->setErrorCode(404);
|
|
||||||
|
|
||||||
return $checker;
|
return $checker;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue