Skip to content

Commit dd2185c

Browse files
committed
Register wallet endpoint
1 parent 91edda8 commit dd2185c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/httprpc.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ bool StartHTTPRPC()
233233
return false;
234234

235235
RegisterHTTPHandler("/", true, HTTPReq_JSONRPC);
236-
236+
#ifdef ENABLE_WALLET
237+
// ifdef can be removed once we switch to better endpoint support and API versioning
238+
RegisterHTTPHandler("/wallet/", false, HTTPReq_JSONRPC);
239+
#endif
237240
assert(EventBase());
238241
httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase());
239242
RPCSetTimerInterface(httpRPCTimerInterface);

0 commit comments

Comments
 (0)