From 43dd1ee910872f84b2167029f16fa25a6a97849c Mon Sep 17 00:00:00 2001 From: CYY1007 Date: Fri, 8 Dec 2023 16:07:39 +0900 Subject: [PATCH] 2023 12 08 merge --- .../api_gateway/web/controller/HealthController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/eureka/api_gateway/web/controller/HealthController.java b/src/main/java/eureka/api_gateway/web/controller/HealthController.java index 3327511..ed6f83b 100644 --- a/src/main/java/eureka/api_gateway/web/controller/HealthController.java +++ b/src/main/java/eureka/api_gateway/web/controller/HealthController.java @@ -1,13 +1,20 @@ package eureka.api_gateway.web.controller; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController +@RequestMapping("/") public class HealthController { @GetMapping("/health") public String health(){ return "I'm healthy!"; } + + @GetMapping("/") + public String welcome(){ + return "this is api gateway!"; + } }