Concept Flow - Why middleware is Express's core concept
Incoming HTTP Request
Middleware 1: Process Request
Middleware 2: Modify Request/Response
Middleware 3: Route Handling or Next Middleware
Send Response or Pass to Next Middleware
End
Express processes each HTTP request by passing it through a chain of middleware functions that can modify the request or response, or decide to end the response.