aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2017-07-17 11:56:00 +0200
committerJonas Schnelli <[email protected]>2017-07-17 11:56:00 +0200
commitdd2185c291a72e2d685746c97d6eb7c22f87226d (patch)
treed4e4e36eefa91048f6cb7150b5d89d0e97a613ff /src/httprpc.cpp
parentMerge #10803: Explicitly search for bdb5.3. (diff)
downloaddiscoin-dd2185c291a72e2d685746c97d6eb7c22f87226d.tar.xz
discoin-dd2185c291a72e2d685746c97d6eb7c22f87226d.zip
Register wallet endpoint
Diffstat (limited to 'src/httprpc.cpp')
-rw-r--r--src/httprpc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index a207d5ece..69c3e3f49 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -233,7 +233,10 @@ bool StartHTTPRPC()
return false;
RegisterHTTPHandler("/", true, HTTPReq_JSONRPC);
-
+#ifdef ENABLE_WALLET
+ // ifdef can be removed once we switch to better endpoint support and API versioning
+ RegisterHTTPHandler("/wallet/", false, HTTPReq_JSONRPC);
+#endif
assert(EventBase());
httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase());
RPCSetTimerInterface(httpRPCTimerInterface);