We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6747f9a + 0e87b20 commit 81d859fCopy full SHA for 81d859f
src/main/java/receive_a_message/LiveReady.java
@@ -0,0 +1,24 @@
1
+package main.java.receive_a_message;
2
+
3
+import org.springframework.web.bind.annotation.GetMapping;
4
+import org.springframework.web.bind.annotation.RestController;
5
+import java.util.HashMap;
6
+import java.util.Map;
7
8
+@RestController
9
+public class LiveReady {
10
11
+ @GetMapping("/live")
12
+ public Map<String, String> live() {
13
+ Map<String, String> response = new HashMap<>();
14
+ response.put("status", "live");
15
+ return response;
16
+ }
17
18
+ @GetMapping("/ready")
19
+ public Map<String, String> ready() {
20
21
+ response.put("status", "ready");
22
23
24
+}
0 commit comments