add wallet balance poll debug
This commit is contained in:
parent
bc6aaad41a
commit
50979a6c54
3 changed files with 11 additions and 3 deletions
|
|
@ -267,8 +267,7 @@ function authorize (req, res, next) {
|
|||
}
|
||||
|
||||
const skip = (req, res) => _.includes(req.path, ['/poll', '/state', '/logs']) &&
|
||||
res.statusCode === 200 &&
|
||||
req.method === 'GET'
|
||||
res.statusCode === 200
|
||||
|
||||
const configRequiredRoutes = [
|
||||
'/poll',
|
||||
|
|
@ -284,7 +283,7 @@ const localApp = express()
|
|||
|
||||
app.use(helmet({noCache: true}))
|
||||
app.use(bodyParser.json())
|
||||
app.use(morgan('dev', {skip}))
|
||||
app.use(morgan('dev', {skip, stream: logger.stream}))
|
||||
|
||||
// These two have their own authorization
|
||||
app.post('/pair', populateDeviceId, pair)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue