Created
March 27, 2025 18:48
-
-
Save Vatsalya-singhi/242e8d935aa309c09855af7d12ab6614 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.module.ts | |
import { Module } from '@nestjs/common'; | |
import { APP_INTERCEPTOR } from '@nestjs/core'; | |
import { LoggingInterceptor } from './logging.interceptor'; | |
@Module({ | |
providers: [ | |
{ | |
provide: APP_INTERCEPTOR, | |
useClass: LoggingInterceptor, | |
}, | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment