                 components: []
                 pages: []
                 model: []
+            for k, v of defaults
+                moduleInfo[k] ?= v
+            app.modules[moduleInfo.name] = moduleInfo
 
             try
                 require.resolve moduleInfo.name,

                    
            app.controller ctrl
        for name in moduleInfo.model
            app.proto[_.capitalize name] = require moduleName + '/model/' + name
            
            
            

        app.modules = {}
        globalPaths = module.constructor.globalPaths
        for moduleInfo in options.modules
            if typeof moduleInfo == 'string'
                moduleInfo = name: moduleInfo
            defaults =
                path:
                    if moduleInfo.name
                        resolve.sync moduleInfo.name,
