Unitech / angular-bridge

Link models easily via a REST interface between Mongoose/Node-Express/Angular.js
208 stars 22 forks source link

Add requestPrehandler to api? #6

Closed kentcdodds closed 11 years ago

kentcdodds commented 11 years ago

I want this change so I can add logic as a consumer of angular-bridge to make sure the user hitting the endpoint is authorized to hit the endpoint. So for me, this change is for authentication purposes. But this simple change could have other use cases as well... Notes:

I'm happy to accept changes to style and/or method.