silverstripe-environmentcheck/code/DevHealth.php

9 lines
162 B
PHP

<?php
class DevHealth extends Controller {
function index() {
$e = new EnvironmentChecker('health', 'Site health');
$e->setErrorCode(404);
return $e;
}
}