In every controller, errors are not returned directly, so a 'headers send twice' error can append.
Returning once error avoid this.
The json body parsing needs to be added to handle bodies in express, I guess.
ps. I've also add to update the mongoose version to 4.x, but this is more related to my installation (it's not in this pull request), anyway, upgrading works directly
double ps. thanks a lot for this (very very) detailed explainations
In every controller, errors are not returned directly, so a 'headers send twice' error can append. Returning once error avoid this.
The json body parsing needs to be added to handle bodies in express, I guess.
ps. I've also add to update the mongoose version to 4.x, but this is more related to my installation (it's not in this pull request), anyway, upgrading works directly
double ps. thanks a lot for this (very very) detailed explainations