Add logs
This commit is contained in:
parent
d127901992
commit
43f578d311
6 changed files with 803 additions and 4009 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue