function(app, route){

        var self = this;

        var controller;
        var controllerPath = self.options.controllersPath + route.controller;

        // Load the controller.
        try {
            controller = require(self.options.rootPath + controllerPath);
        }
        catch (e) {
            throw new Error('The specified controller (' + controllerPath + ') does not exist.');
        }

        if (controller) {

            // If the specified method does not exist, throw an exception.
            if (controller[route.method] === undefined) {
                throw new Error('The specified method (' + route.method + ') does not exist on the controller (' + controllerPath + ').');
            }

            // Bind the route.
            app[route.verb](route.path, controller[route.method]);
        }
    }
function(app, route){

        var self = this;

        var controller;
        var controllerPath = self.options.controllersPath + route.controller;

        
        try {
            controller = require(self.options.rootPath + controllerPath);
        }
        catch (e) {
            throw new Error('The specified controller (' + controllerPath + ') does not exist.');
        }

        if (controller) {

            
            if (controller[route.method] === undefined) {
                throw new Error('The specified method (' + route.method + ') does not exist on the controller (' + controllerPath + ').');
            }

            
            app[route.verb](route.path, controller[route.method]);
        }
    }
function ( app , route ) { var self = this ; var controller ; var controllerPath = self . options . controllersPath + route . controller ; // Load the controller. try { controller = require ( self . options . rootPath + controllerPath ) ; } catch ( e ) { throw new Error ( 'The specified controller (' + controllerPath + ') does not exist.' ) ; } if ( controller ) { // If the specified method does not exist, throw an exception. if ( controller [ route . method ] === undefined ) { throw new Error ( 'The specified method (' + route . method + ') does not exist on the controller (' + controllerPath + ').' ) ; } // Bind the route. app [ route . verb ] ( route . path , controller [ route . method ] ) ; } }
Handles binding a regular, boring route => controller combination on the provided app.
@param {Object} app The application to bind against.
@param {Object} route The details of the route to bind.
Handles binding a regular boring route = > controller combination on the provided app .