lib/http/mvc/loader.js
function(controller, callback) {

            // Add the given name to the controller
            controller.name = name;
            controller.module = module;

            // Set default value on the controller instance
            controller.basePath = self.getBasePath(
                controller, path, module
            );

            // Add the canonical path
            controller.canonicalPath = self.getCanonicalPath(
                path, name, module
            );

            callback(null, controller);
        }
function(controller, callback) {

            // Add the given name to the controller
            controller.name = name;
            controller.module = module;

            // Set default value on the controller instance
            controller.basePath = self.getBasePath(
                controller, path, module
            );

            // Add the canonical path
            controller.canonicalPath = self.getCanonicalPath(
                path, name, module
            );

            callback(null, controller);
        }
function ( controller , callback ) { // Add the given name to the controller controller . name = name ; controller . module = module ; // Set default value on the controller instance controller . basePath = self . getBasePath ( controller , path , module ) ; // Add the canonical path controller . canonicalPath = self . getCanonicalPath ( path , name , module ) ; callback ( null , controller ) ; }
Run any options generation
Run any options generation