Comment on page
Module Routes Files
A module can also include one or more custom routing files in order to take advantage of our routing DSL and also have better separation as they will be stored outside of the module configuration object. You do this by giving the path to the custom file to include in your routes structure:
routes = [
This will look for a
routes.cfmtemplate in your module's
configfolder and load it. Please note that you do not need to specify a
.cfmif you don't want to. You can load as many route files as you like.
If you want to use the ColdBox 5
Router.cfcinside your module you can simply place the
configfolder and it will load by convention.