Allow default route to be turned off for a Module

Description

If you create a module whose router.cfc doesn't have the default convention route, the ModuleService adds it in for you. however, for a REST API, it can be desirable to disable the default route in favor of explicit routes only.

Add the following setting to ModuleConfig.cfc

and default it to true. Setting that to false will prevent the module service from adding the convention routes.

Also, ensure that when the setting is true, that it still adds the default convention route even when using routes.cfm or the inline routes array in ModuleConfig.cfc so the behavior is consistent.

Assignee

Luis Majano

Reporter

Brad Wood

Labels

None

Priority

Major
Configure