Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then(function() {
var model = new couchDBModel(nano.use(COUCHDB_DB_NAME), {
restapi: {
index: true,
byID: true,
save: true
}
});
console.log('Bound REST API to request event');
server.on('request', model.onRequest);
}, function(error) {
console.error(error);