lib/middleware/forms.js
function create(req, res, next) {
  var options = req.connectionOptions;
  req.user = req.user || {};
  var params = {
    userEmail: req.user.email || req.body.updatedBy
  };

  options = _.extend(options, params);

  logger.debug("Middleware: create form: ", {options: options});

  forms.updateForm(options, req.body, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function create(req, res, next) {
  var options = req.connectionOptions;
  req.user = req.user || {};
  var params = {
    userEmail: req.user.email || req.body.updatedBy
  };

  options = _.extend(options, params);

  logger.debug("Middleware: create form: ", {options: options});

  forms.updateForm(options, req.body, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function create ( req , res , next ) { var options = req . connectionOptions ; req . user = req . user || { } ; var params = { userEmail : req . user . email || req . body . updatedBy } ; options = _ . extend ( options , params ) ; logger . debug ( "Middleware: create form: " , { options : options } ) ; forms . updateForm ( options , req . body , formsResultHandlers ( constants . resultTypes . forms , req , next ) ) ; }
Create A New Form
@param req
@param res
@param next
Create A New Form