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 7fe5d5f + 046d2f7 commit eff7ebdCopy full SHA for eff7ebd
src/main/java/com/github/freeclimbapi/javavoicequickstart/LiveReady.java
@@ -0,0 +1,24 @@
1
+package com.github.freeclimbapi.javavoicequickstart;
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