diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-07-17 11:56:00 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-07-17 11:56:00 +0200 |
commit | dd2185c291a72e2d685746c97d6eb7c22f87226d (patch) | |
tree | d4e4e36eefa91048f6cb7150b5d89d0e97a613ff /src | |
parent | 91edda8f3c81ba5a69f44485f20d74f85ec9cee1 (diff) |
Register wallet endpoint
Diffstat (limited to 'src')
-rw-r--r-- | src/httprpc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index a207d5ece4..69c3e3f49f 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); |