mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-22 20:50:22 +00:00
* change all usage of std.options.Option[T] to results.Opt[T] * fix broken apps and examples (to validate refactor) * removed all std/options code added for libp2p v2 migration * add broker Opt codec to persistency/backend_comm.nim * add a readValue overload for Opt[T] in tools/confutils/cli_args.nim * keep Option where required (Presto, confutils' config_file.nim) * Change generateRlnProof error handling * Fix imports
21 lines
657 B
Nim
21 lines
657 B
Nim
{.push raises: [].}
|
|
|
|
import
|
|
chronicles, json_serialization, json_serialization/pkg/results, presto/[route, client]
|
|
import ../serdes, ../rest_serdes, ./types
|
|
|
|
export types
|
|
|
|
logScope:
|
|
topics = "waku node rest debug_api"
|
|
|
|
# TODO: Check how we can use a constant to set the method endpoint (improve "rest" pragma under nim-presto)
|
|
proc debugInfoV1*(): RestResponse[DebugWakuInfo] {.
|
|
rest, endpoint: "/info", meth: HttpMethod.MethodGet
|
|
.}
|
|
|
|
# TODO: Check how we can use a constant to set the method endpoint (improve "rest" pragma under nim-presto)
|
|
proc debugVersionV1*(): RestResponse[string] {.
|
|
rest, endpoint: "/version", meth: HttpMethod.MethodGet
|
|
.}
|