Skip to content

Commit 3760a21

Browse files
author
Łukasz Gąsior
authored
Merge pull request #454 from input-output-hk/feature/healthcheck
[CGKIELE-193] Add healthcheck endpoint
2 parents bb5c096 + 2ea57ad commit 3760a21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/server/http/JsonRpcHttpServer.scala

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ trait JsonRpcHttpServer extends Json4sSupport {
4545
.result()
4646

4747
val route: Route = cors(corsSettings) {
48+
(path("healthcheck") & pathEndOrSingleSlash & get) {
49+
complete(StatusCodes.OK)
50+
} ~
4851
(pathEndOrSingleSlash & post) {
4952
entity(as[JsonRpcRequest]) { request =>
5053
handleRequest(request)

0 commit comments

Comments
 (0)