Browse Source

response add document-root

visuddhinanda 3 days ago
parent
commit
ef3ff5ba1f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      api-v13/app/Http/Controllers/HealthCheckController.php

+ 2 - 1
api-v13/app/Http/Controllers/HealthCheckController.php

@@ -79,7 +79,8 @@ class HealthCheckController extends Controller
             [
                 'createdAt' => now(),
                 'services' => $checks,
-                'host' => $_SERVER['HTTP_HOST']
+                'host' => $_SERVER['HTTP_HOST'],
+                'document-root' => $_SERVER['DOCUMENT_ROOT']
             ],
             $healthy ? 200 : 500,
             ['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'],