Merge pull request #52 from msgmaxim/maxim

Add a dummy get v2/lsrpc handler
This commit is contained in:
Maxim Shishmarev 2020-10-27 12:47:14 +11:00 committed by GitHub
commit 0409b1e5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -403,6 +403,16 @@ module.exports = (app, prefix) => {
}, res);
});
app.get(prefix + '/loki/v2/lsrpc', (req, res) => {
console.error("Processing a dummy GET /loki/v2/lsrpc");
sendresponse({
ciphertext: '',
}, res);
});
app.get(prefix + '/loki/v1/lsrpc', (req, res) => {
res.start = Date.now()
var ephemeralPubKeyHex = ''