Unregistered Event After Updating Routes.cfm

I added a route in the Routes.cfm but when I try to call it I get the an unregistered event error. The only way I can make it work is when I restart the CF Service. I’m currently on CF11. Below are the ColdBox.cfc config settings.

`

coldbox.handlerCaching = false;

coldbox.eventCaching = false;
coldbox.debugMode = true;

coldbox.debugPassword = “”;

coldbox.reinitPassword = “”;

wirebox.singletonReload = true;

`

Also, the Routes.cfm contains the following.

`

addRoute(pattern="/service/asset/create", handler=“asset”,action={POST=‘edit’});

`

I call the service as http://dev.vims.divvythat.com/service/asset/create but getting the following error.

Application Execution ExceptionError Type: HandlerService.EventHandlerNotRegisteredException : [N/A]

Error Messages: The event: Asset.create is not valid registered event.

Do you know why I can’t register the event unless I restart the CF Service? Is there a setting I need to change?

I figured out why I was getting an invalid registered. The pattern “/service/asset/create” caused an issue. Changin it to “/asset/create” resolved it.