Add home page Web Service endpoint with description, 'Look-Aside Caching Example'.

This commit is contained in:
John Blum
2019-08-23 00:16:45 -07:00
parent 7a8dec633d
commit d4643d4cf2

View File

@@ -47,6 +47,11 @@ public class CounterController {
this.counterService = counterService;
}
@GetMapping("/")
public String home() {
return String.format(HEADER_ONE, "Look-Aside Caching Example");
}
@GetMapping("/ping")
public String ping() {
return String.format(HEADER_ONE, "PONG");