ソースを参照

response checks=>services domain => host

visuddhinanda 1 ヶ月 前
コミット
bffea8c841
1 ファイル変更2 行追加2 行削除
  1. 2 2
      api-v13/app/Http/Controllers/HealthCheckController.php

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

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