lib/scaffoldHandler.js
function addRedirectRoute(server, scaffold) {
        assert(scaffold.path && scaffold.target, `TransomScaffold redirectRoute requires 'path' and 'target' to be specified.`);

        server.get(scaffold.path, function (req, res, next) {
            res.redirect(scaffold.target, next);
        });
    }
function addRedirectRoute(server, scaffold) {
        assert(scaffold.path && scaffold.target, `TransomScaffold redirectRoute requires 'path' and 'target' to be specified.`);

        server.get(scaffold.path, function (req, res, next) {
            res.redirect(scaffold.target, next);
        });
    }
function addRedirectRoute ( server , scaffold ) { assert ( scaffold . path && scaffold . target , ` ` ) ; server . get ( scaffold . path , function ( req , res , next ) { res . redirect ( scaffold . target , next ) ; } ) ; }
Add a GET route that redirects to another URI.

@param {*} server - Restify server instance
@param {*} scaffold  - Object from the redirectRoutes array.
Add a GET route that redirects to another URI .