UNPKG

express-pouchdb

Version:

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

22 lines (17 loc) 462 B
'use strict'; var utils = require('../utils'); module.exports = function (app) { // there is only one node, but these APIs // are required for fauxton app.get('/_membership', function (req, res) { utils.sendJSON(res, 200, { all_nodes: ['node1@127.0.0.1'], cluster_nodes: ['node1@127.0.0.1'] }); }); app.get('/_cluster_setup', function (req, res) { utils.sendJSON(res, 201, { state: 'cluster_disabled' }); }); };