mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
Merge pull request #34 from silverstripe-labs/public-access
Allow public access to the dev/health url and change response to 500
This commit is contained in:
commit
a8c0963c69
@ -4,6 +4,6 @@ After: 'framework/*','cms/*'
|
||||
---
|
||||
Director:
|
||||
rules:
|
||||
'dev/health': 'DevHealthController'
|
||||
'health/check': 'DevHealthController'
|
||||
'dev/check/$Suite': 'DevCheckController'
|
||||
|
||||
|
@ -19,8 +19,7 @@ class DevHealthController extends Controller
|
||||
// health check does not require permission to run
|
||||
|
||||
$checker = new EnvironmentChecker('health', 'Site health');
|
||||
$checker->init('');
|
||||
$checker->setErrorCode(404);
|
||||
$checker->setErrorCode(500);
|
||||
|
||||
return $checker;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user