UNPKG

express-pouchdb

Version:

Express submodule with a CouchDB-style REST interface to PouchDB.

16 lines (12 loc) 317 B
"use strict"; module.exports = function enableValidation(app) { app.daemonManager.registerDaemon({ start: function (PouchDB) { PouchDB.plugin(require('pouchdb-validation')); } }); app.dbWrapper.registerWrapper(function (name, db, next) { db.installValidationMethods(); next(); }); };