nrstott/bogart — Issue #28: router.before/after callback promise support
Author: jdc0589
Created: 2011-12-01 16:46:01+00:00
State: open

Routing callbacks registered with before/after are currently executed without respect for any possible returned promises. We probably need shove the return values of all the before/after callbacks in to arrays and wait for a 'q.all' to resolve in the appropriate places.

Also, the 'after' callbacks should probably be executed after the promise from the call to "route.handler.apply" is resolved.

Thoughts?