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:
Damian Mooyman 2016-07-12 14:23:16 +12:00 committed by GitHub
commit a8c0963c69
2 changed files with 2 additions and 3 deletions

View File

@ -4,6 +4,6 @@ After: 'framework/*','cms/*'
--- ---
Director: Director:
rules: rules:
'dev/health': 'DevHealthController' 'health/check': 'DevHealthController'
'dev/check/$Suite': 'DevCheckController' 'dev/check/$Suite': 'DevCheckController'

View File

@ -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;
} }