If you've been following along, you already know some of what Express Middleware can do for you. From routers to route parameters and session providers, middleware is a very powerful part of the Express web server.
But there's more that it can do for us, still!
In this episode, you'll learn one more tool that you need to keep in your belt when it comes to using middleware. You'll see how middleware can be used to take nested callbacks and tangentially related code, and extract it in to something much cleaner. Move your code from your route handler directly and in to middleware functions, and you can very quickly take a mess and turn it in to something beautiful!
This episode marks the final look at Express middleware, routes and code cleanup for the series – and it takes everything you've done up until now, and puts it all together in to some very clean, beautiful code.