refactor(tx): transaction(s) changed to tx(s)
This commit is contained in:
parent
55abaa1bb9
commit
5a78376ad5
3 changed files with 16 additions and 14 deletions
|
|
@ -87,10 +87,10 @@ function verifyUser(req, res) {
|
|||
});
|
||||
}
|
||||
|
||||
function verifyTransaction(req, res) {
|
||||
function verifyTx(req, res) {
|
||||
if (mock) return res.json({success: true});
|
||||
|
||||
plugins.verifyTransaction(req.body, function (err, idResult) {
|
||||
plugins.verifyTx(req.body, function (err, idResult) {
|
||||
if (err) {
|
||||
logger.error(err);
|
||||
return res.json({err: 'Verification failed'});
|
||||
|
|
@ -140,7 +140,7 @@ function init(localConfig) {
|
|||
app.post('/trade', authMiddleware, trade);
|
||||
app.post('/event', authMiddleware, deviceEvent);
|
||||
app.post('/verify_user', authMiddleware, verifyUser);
|
||||
app.post('/verify_transaction', authMiddleware, verifyTransaction);
|
||||
app.post('/verify_transaction', authMiddleware, verifyTx);
|
||||
app.post('/pair', pair);
|
||||
|
||||
return app;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue