sequenz composes connect middleware for nodejs
sequenz makes a single middleware from multiple middlewares
npm install sequenz
put this line in the dependencies section of your
a middleware is a function of three arguments:
the request object
req from the nodejs http server,
the response object
res from the nodejs http server
and a callback
middleware handles the request and usually modifies the response.
if a middleware doesn't end the request it should call
next to give control
to the next middleware.
the sequenz module exports a single function. that function either takes a single array of middlewares or any number of middlewares as separate arguments. it returns a new middleware that will call those middlewares in order.
var http = ;var connect = ;var sequenz = ;var passage = ;var routes =;var middleware =;var server = http;server;