Skip to content

Commit

Permalink
health URL
Browse files Browse the repository at this point in the history
  • Loading branch information
prenagha committed Aug 15, 2024
1 parent 13e2f6c commit 16661c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/renaghan/todo/IndexController.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.renaghan.todo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {

public IndexController() {}

@GetMapping
@RequestMapping("/")
@RequestMapping(method = RequestMethod.GET, path = "/")
public String getIndex() {
return "index";
}
Expand Down
7 changes: 4 additions & 3 deletions cdk/src/main/java/com/renaghan/todo/cdk/ServiceApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ public static void main(String[] args) {

Service.ServiceInputParameters inputParameters =
new Service.ServiceInputParameters(
new Service.DockerImageSource(
app.getContext("dockerRepositoryName"), app.getContext("dockerImageTag")),
vars);
new Service.DockerImageSource(
app.getContext("dockerRepositoryName"), app.getContext("dockerImageTag")),
vars)
.withHealthCheckPath("/mgmt/health");

new Service(
serviceStack,
Expand Down

0 comments on commit 16661c5

Please sign in to comment.