diff options
author | Andrew Dolgov <[email protected]> | 2023-10-25 17:53:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-25 17:53:49 +0300 |
commit | 31812726190407ae52f673b9c3184f5348c2fcc1 (patch) | |
tree | 1ef468769e7589a5d55eb402468d57229f3aa96a /classes/Handler_Public.php | |
parent | 865ecc87963dc3b26e66296616eef2a1cc41ac3f (diff) |
add healthcheck public method, map by default to /healthz
Diffstat (limited to 'classes/Handler_Public.php')
-rw-r--r-- | classes/Handler_Public.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/Handler_Public.php b/classes/Handler_Public.php index 8134eeff2..d0e434c8e 100644 --- a/classes/Handler_Public.php +++ b/classes/Handler_Public.php @@ -834,5 +834,11 @@ class Handler_Public extends Handler { exit; } + // implicit Config::sanity_check() does the actual checking */ + public function healthcheck() { + header("Content-Type: text/plain"); + print "OK"; + } + } ?> |