mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 05:53:11 +00:00
* Rename waku_api to rest_api and underlying rest to endpoint for clearity * Rename node/api to node/kernel_api to suggest that it is an internal accessor to node interface + make everything compile after renaming * make waku api a top level import * fix use of relative path imports and use default to root rather in case of waku and tools modules
12 lines
312 B
Nim
12 lines
312 B
Nim
{.push raises: [].}
|
|
|
|
import chronicles, json_serialization, presto/[route, client]
|
|
import ./types, ../serdes, ../rest_serdes, waku/node/health_monitor
|
|
|
|
logScope:
|
|
topics = "waku node rest health_api"
|
|
|
|
proc healthCheck*(): RestResponse[HealthReport] {.
|
|
rest, endpoint: "/health", meth: HttpMethod.MethodGet
|
|
.}
|