Skip to content

Commit 277aa76

Browse files
authored
Need to add status check to get healthy upstream (#17)
1 parent 3b0c888 commit 277aa76

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.springframework.samples.petclinic.system;
2+
3+
import org.springframework.http.HttpStatus;
4+
import org.springframework.stereotype.Controller;
5+
import org.springframework.web.bind.annotation.GetMapping;
6+
import org.springframework.web.bind.annotation.ResponseStatus;
7+
8+
@Controller
9+
public class StatusController {
10+
@GetMapping("/check")
11+
@ResponseStatus(HttpStatus.OK)
12+
public void Check() {
13+
// all good
14+
}
15+
16+
}

0 commit comments

Comments
 (0)