server/backbone.js
function(req, res) {
        if (res.locals.success) {
            options.success(model, response);
        } else {
            options.error(model, response);
        }
    }
function(req, res) {
        if (res.locals.success) {
            options.success(model, response);
        } else {
            options.error(model, response);
        }
    }
function ( req , res ) { if ( res . locals . success ) { options . success ( model , response ) ; } else { options . error ( model , response ) ; } }
Create a route handler wrapper to call success or error.
Create a route handler wrapper to call success or error .