mirror of https://github.com/waku-org/nwaku.git
13 lines
360 B
Nim
13 lines
360 B
Nim
{.push raises: [].}
|
|
|
|
import
|
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
|
import ./types, ../serdes, ../responses, ../rest_serdes, waku/node/health_monitor
|
|
|
|
logScope:
|
|
topics = "waku node rest health_api"
|
|
|
|
proc healthCheck*(): RestResponse[HealthReport] {.
|
|
rest, endpoint: "/health", meth: HttpMethod.MethodGet
|
|
.}
|