From ae24e053007fbca0c22f85c411f3031f81ab51f2 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 11 Aug 2022 13:39:31 +0400 Subject: [PATCH] fix alive response --- src/main/java/ru/ulstu/controller/UtilController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ru/ulstu/controller/UtilController.java b/src/main/java/ru/ulstu/controller/UtilController.java index 42c3031..7840dc1 100644 --- a/src/main/java/ru/ulstu/controller/UtilController.java +++ b/src/main/java/ru/ulstu/controller/UtilController.java @@ -25,8 +25,8 @@ public class UtilController { @GetMapping("alive") @Operation(description = "Проверка сервиса") - public ResponseEntity isAlive() { - return new ResponseEntity<>(true, HttpStatus.OK); + public ResponseEntity isAlive() { + return new ResponseEntity<>(Map.of("result", true), HttpStatus.OK); } @GetMapping("getRandom")