diff --git a/src/core/interceptors/logging.interceptor.spec.ts b/src/core/interceptors/logging.interceptor.spec.ts new file mode 100644 index 0000000..978e0bb --- /dev/null +++ b/src/core/interceptors/logging.interceptor.spec.ts @@ -0,0 +1,7 @@ +import { LoggingInterceptor } from './logging.interceptor'; + +describe('LoggingInterceptor', () => { + it('should be defined', () => { + expect(new LoggingInterceptor()).toBeDefined(); + }); +}); diff --git a/src/core/interceptors/logging.interceptor.ts b/src/core/interceptors/logging.interceptor.ts new file mode 100644 index 0000000..77b5ab2 --- /dev/null +++ b/src/core/interceptors/logging.interceptor.ts @@ -0,0 +1,9 @@ +import { CallHandler, ExecutionContext, Injectable, NestInterceptor } from '@nestjs/common'; +import { Observable } from 'rxjs'; + +@Injectable() +export class LoggingInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + return next.handle(); + } +}