Closed ax1 closed 7 years ago
This will change because func[] will be upgraded to {func1,func2..}. This is more versatile and easier to understand (and less error-prone as well).
So forget func[] and near-future documentation will be:
controller.configure(url,opts,{
func1(){...},
func2(){...}
})
Note: overriding CRUD methods will be still available by creating functions like customRead, customUpdate and so on (and this way we can execute before and after the crud command, and not only after like when func[] was used).
v0.7.X will contain this functionality.
Right now the param order is url,func[],options
To match order with node callback style better to put func[] as the last param