Add /api/customers endpoint in admin

This commit is contained in:
goga-m 2017-09-15 17:27:34 +03:00 committed by Josh Harvey
parent 685b327fb6
commit f8f7f87cca
2 changed files with 13 additions and 1 deletions

View file

@ -32,4 +32,9 @@ function getDailyVolume (id) {
})
}
module.exports = { add, get }
function batch () {
const sql = 'select * from customers'
return db.any(sql)
}
module.exports = { add, get, batch }