mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 15:05:40 +00: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:
|
Director:
|
||||||
rules:
|
rules:
|
||||||
'dev/health': 'DevHealthController'
|
'health/check': 'DevHealthController'
|
||||||
'dev/check/$Suite': 'DevCheckController'
|
'dev/check/$Suite': 'DevCheckController'
|
||||||
|
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user