Skip to content

Commit

Permalink
Merge pull request #61 from MarshallWace/healthchecks
Browse files Browse the repository at this point in the history
health-checks renamed again
  • Loading branch information
mw-lb authored Oct 8, 2024
2 parents 674fb72 + 09caca7 commit 191ffcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun Application.configureMonitoring() {

fun Application.configureHealthCheck(name: String, isHealth: () -> Boolean) {
routing {
get("/$name", {
get(name, {
hidden = true
}) {
if (isHealth()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ fun Application.module(config: Config) {

configureRouting()

configureHealthyHealthCheck("live")
configureHealthyHealthCheck("ready")
configureHealthyHealthCheck("/health/live")
configureHealthyHealthCheck("/health/ready")
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ fun Application.module(config: Config) {

configureRouting()

configureHealthyHealthCheck("live")
configureHealthyHealthCheck("ready")
configureHealthyHealthCheck("/health/live")
configureHealthyHealthCheck("/health/ready")
}

0 comments on commit 191ffcd

Please sign in to comment.