Express middleware that handles routing automatically.