Our syntax currently requires us to pass in a "blob" of options to the call it .resource including arrays of hooks, actions & validators:
.resource({ -- fields -- }, { hooks : [], actions : [], validators : [], etc })
It would be neat to support something more like:
.resource({ -- fields -- })
.addHook(hook)
.addHook(hook)
.addActions(action)
.addValidator(validator)