lib/middleware/dataSources.js
function deploy(req, res, next) {
  var dataSource = req.body;

  dataSource._id = req.params.id;

  forms.dataSources.deploy(req.connectionOptions, dataSource, dataSourcesHandler(constants.resultTypes.dataSources, req, next));
}
function deploy(req, res, next) {
  var dataSource = req.body;

  dataSource._id = req.params.id;

  forms.dataSources.deploy(req.connectionOptions, dataSource, dataSourcesHandler(constants.resultTypes.dataSources, req, next));
}
function deploy ( req , res , next ) { var dataSource = req . body ; dataSource . _id = req . params . id ; forms . dataSources . deploy ( req . connectionOptions , dataSource , dataSourcesHandler ( constants . resultTypes . dataSources , req , next ) ) ; }
Deploying A Data Source. This will update if already exists or create one if not.
@param req
@param res
@param next
Deploying A Data Source . This will update if already exists or create one if not .