Obvious/matador — pull request #69 by azulus (2012-06-19 20:32:57+00:00)
Title: Migrating from Express to Connect

Migrating Matador from Express to Connect. Lots of utility methods provided to emulate express functionality on top of connect. New path matcher put into place (due to lack of path matcher inside of Connect). Per-route middleware now handled by preRouter and router middleware provided by Matador. Routes are still defined as controller methods but middleware now exists on the controller prototype itself, e.g.:

function MyController() {}

MyController.prototype.index = function (req, res, next) {
res.send("ok")
}

MyController.prototype.index.middleware = [requireAuth, requireFunnyHat]