Middleware configuration for express.