2023-09-08 09:19:47 +00:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
|
|
|
|
|
|
|
import
|
2024-03-15 23:08:47 +00:00
|
|
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
|
|
|
import ../serdes, ../responses, ../rest_serdes
|
2023-09-08 09:19:47 +00:00
|
|
|
|
|
|
|
logScope:
|
|
|
|
topics = "waku node rest health_api"
|
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
proc healthCheck*(): RestResponse[string] {.
|
|
|
|
rest, endpoint: "/health", meth: HttpMethod.MethodGet
|
|
|
|
.}
|