Concept Flow - Functional middleware
Request Received
Middleware Function Called
Middleware Logic Executes
Call next() to pass control
Next Middleware or Handler Executes
Response Sent
The request passes through the functional middleware which runs its logic and calls next() to continue the flow.