lib/middleware/attachments_middleware.js
Function attachments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function attachments (app) {
var router = app.router(false);
router.get('/attachment/:docId/:attId', function (req) {
var att;