[3.5…] ModuleConfig.cfc Routes

Is it possible to use the json syntax to assign a specific action based on the HTTP method within ModuleConfig.cfc?

I have this:
routes = [
{pattern="/forgot-password",handler=“Account”, action=“forgotPassword”},
{pattern="/register", handler=“Account”, action="{‘GET’:‘registration’,‘POST’:‘create’}"}

Which, renders an event value like:

If not, what would the recommended way to set this up within a module be?


This should work to split the route based on the HTTP verb.


Yep. But use implicit struct notation