This commit is contained in:
goga-m 2017-10-17 21:19:00 +03:00 committed by Josh Harvey
parent d127901992
commit 43f578d311
6 changed files with 803 additions and 4009 deletions

View file

@ -28,6 +28,7 @@ const pairing = require('./pairing')
const server = require('./server')
const transactions = require('./transactions')
const customers = require('../customers')
const logs = require('../logs')
const funding = require('./funding')
const _ = require('lodash/fp')
@ -184,6 +185,12 @@ app.get('/api/customer/:id', (req, res, next) => {
})
})
app.get('/api/logs/:deviceId', (req, res, next) => {
return logs.getMachineLogs(req.params.deviceId)
.then(r => res.send(r))
.catch(next)
})
/**
* Endpoint for patching customer's data
*