News for hackers. Stuff that matters.
Re:The M in MVC: Why Models are Misunderstood and Unappreciated by bergie on Tuesday July 26, 2011 @09:52AM (#2807300)
Usually with Node.js/Express we handle stuff like authentication on middleware, so controllers don't need to bother. The route just includes the authentication/authorization middleware if one is needed.

Here is a simple example for hooking in route-specific middlewares: https://gist.github.com/978411#file_express_middlewares.coff...

There are no comments on this comment yet.