lib/index.js
function redirectToSkimdb(req, res) {
        var skimUrl = 'http://localhost:' + pouchPort + '/skimdb';
        var get = request.get(req.originalUrl.replace(/^\/_skimdb/, skimUrl));
        get.on('error', (err) => {
            logger.warn("couldn't proxy to skimdb");
            logger.warn(err);
        });
        get.pipe(res);
    }
function redirectToSkimdb(req, res) {
        var skimUrl = 'http://localhost:' + pouchPort + '/skimdb';
        var get = request.get(req.originalUrl.replace(/^\/_skimdb/, skimUrl));
        get.on('error', (err) => {
            logger.warn("couldn't proxy to skimdb");
            logger.warn(err);
        });
        get.pipe(res);
    }
function redirectToSkimdb ( req , res ) { var skimUrl = 'http://localhost:' + pouchPort + '/skimdb' ; var get = request . get ( req . originalUrl . replace ( / ^\/_skimdb / , skimUrl ) ) ; get . on ( 'error' , ( err ) => { logger . warn ( "couldn't proxy to skimdb" ) ; logger . warn ( err ) ; } ) ; get . pipe ( res ) ; }
utils
utils