var models = require('../models'),
  _validate = require('../../helpers/express-validators'),
  _h = require('../../helpers/helpers'),
  jwt = require('jsonwebtoken'),
  co = require('co'),
  userHelper = require('./controller-helpers').userHelper,
  docHelper = require('./controller-helpers').docHelper,
  roleHelper = require('./controller-helpers').roleHelper;

module.exports = {
  authController: require('./auth-controller')(models, _validate, _h, jwt, co),
  userController: require('./user-controller')(_validate, _h, userHelper),
  docController: require('./document-controller')(_validate, _h, docHelper),
  roleController: require('./role-controller')(_validate, _h, roleHelper)
};

var models = require('../models'),
  _validate = require('../../helpers/express-validators'),
  _h = require('../../helpers/helpers'),
  jwt = require('jsonwebtoken'),
  co = require('co'),
  cloudinary = require('cloudinary'),
  userHelper = require('./controller-helpers').userHelper,
  docHelper = require('./controller-helpers').docHelper,
  roleHelper = require('./controller-helpers').roleHelper;

module.exports = {
  authController: require('./auth-controller')(models, _validate, _h, jwt, co),
  userController: require('./user-controller')(_validate, _h, userHelper),
  docController: require('./document-controller')(_validate, _h, docHelper),
  roleController: require('./role-controller')(_validate, _h, roleHelper),
  uploadController: require('./img-upload-controller')
     (_validate, cloudinary, models, co)
};

Add image upload and delete routes to parent route
Add image upload and delete routes to parent route
