Solution: API Timer Middleware

Review an approach for writing an API timer middleware.

The code below adds a new middleware function to time our API responses.
New code is present in lines 28–38.

Get hands-on with 1200+ tech skills courses.