Coding task · NestJS course · Module 2: Routing and Request Lifecycle

TransformInterceptor - Response Mapping

Create an interceptor that wraps every response in a standard format.

Task

Write a TransformInterceptor that uses map() from RxJS to wrap the response in { success: true, data: response }