nicjohnson/sp — pull request #1 by rdegges (2014-09-20 00:00:03+00:00)
Title: Fixing Stormpath Errors

Yo!

This PR fixes the errors with stormpath routes. What was happening was:

- The order of the middleware / routes must be precise (this isn't in our docs, so I'm going to have to update it accordingly -- my bad!).
- I also simplified some of your route code: you can access the user via `req.user` (shorthand), and each template automatically gets a `user` object in it -- no need to pass it in explicitly =)

-Randall