how do i map all coldbox request to a specific module by default?
on module load, you could modify the defaultEvent setting in your apps config.
function onLoad(){} in your moduleConfig.cfc.
Set the module’s entry point to “/” in the ModuleConfig.cfc and it will take over the application
// Module Entry Point
this.entryPoint = “/”;
That will cause any routes in that module to start at the beginning of the path_info as opposed to being preceded by an entry point. This is how ContentBox works by default. in this scenario, I’m not sure if it is possible to hit a regular handler any more unless you have mapped a specific route to it.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com