mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-16 00:37:21 +02:00
Add docker-compose healthcheck and /api/healthcheck (#12)
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user