lib/Hecate.js
function(verb, path, controllerName){

        // Load the referenced controller.
        var controllerPath = this.options.controllersPath + controllerName;
        try {
            var controller = require(this.options.rootPath + controllerPath);

            // Iterate over the controller, creating new route entries for each function.
            for (var field in controller) {

                if (typeof controller[field] == 'function') {
                    this.addNewRouteEntry(verb, path.replace(/{method}/, field), controllerName, field);
                }
            }
        }
        catch (e) {
            throw new Error('The specified controller (' + controllerPath + ') does not exist.');
        }
    }
function(verb, path, controllerName){

        // Load the referenced controller.
        var controllerPath = this.options.controllersPath + controllerName;
        try {
            var controller = require(this.options.rootPath + controllerPath);

            // Iterate over the controller, creating new route entries for each function.
            for (var field in controller) {

                if (typeof controller[field] == 'function') {
                    this.addNewRouteEntry(verb, path.replace(/{method}/, field), controllerName, field);
                }
            }
        }
        catch (e) {
            throw new Error('The specified controller (' + controllerPath + ') does not exist.');
        }
    }
function ( verb , path , controllerName ) { // Load the referenced controller. var controllerPath = this . options . controllersPath + controllerName ; try { var controller = require ( this . options . rootPath + controllerPath ) ; // Iterate over the controller, creating new route entries for each function. for ( var field in controller ) { if ( typeof controller [ field ] == 'function' ) { this . addNewRouteEntry ( verb , path . replace ( / {method} / , field ) , controllerName , field ) ; } } } catch ( e ) { throw new Error ( 'The specified controller (' + controllerPath + ') does not exist.' ) ; } }
Generate the various routes represented by a wildcard controller entry.
@param {String} verb The HTTP verb for the route.
@param {String} path The relative URL for the route.
@param {String} controllerName The path to the controller to use for serving the route.
Generate the various routes represented by a wildcard controller entry .