Add docker-compose healthcheck and /api/healthcheck (#12)

This commit is contained in:
AJ Collins
2024-11-30 14:57:15 -08:00
committed by GitHub
parent a13b48af5b
commit ab8c22b3e5
2 changed files with 13 additions and 3 deletions
@@ -78,6 +78,11 @@ object ShotgunServer {
complete(HttpEntity(ContentTypes.`text/html(UTF-8)`, "<h1>Say hello to Pekko HTTP</h1><p><b>Code: " + code.getOrElse("None") + "</b></p>"))
}
}
},
path("healthcheck") {
get {
complete(HttpResponse(StatusCodes.OK, entity = "Service is healthy"))
}
}
)
}