Skip to content

Commit eff7ebd

Browse files
authored
Merge pull request #10 from FreeClimbAPI/VCSWP-23750
Resolves VCSWP-23750
2 parents 7fe5d5f + 046d2f7 commit eff7ebd

File tree

1 file changed

+24
-0
lines changed
  • src/main/java/com/github/freeclimbapi/javavoicequickstart

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
Map<String, String> response = new HashMap<>();
21+
response.put("status", "ready");
22+
return response;
23+
}
24+
}

0 commit comments

Comments
 (0)