Hi everyone!
I’m using Coldbox 7.
I’m trying to propagate “prc” values from the group to the underlying routes.
Like this:
group( { pattern = "/", prc = { permissions = "all" } },
function( event, a, b ){
get( "/route-1" ).to( "MainController.getMethod" );
post( "/route-1" ).to( "MainController.postMethod" );
}
);
But inside “prc” in the controller methods my “permissions” is not added.
I think I understand that group() can only extend “target” and “pattern.” Is that correct?
I understand that Namespaces aren’t right for me either.
I might be using Coldbox incorrectly ![]()
Any ideas?
Thanks!