Skip to content

Latest commit

 

History

History

README.md

14-interceptors

Aspect-oriented interceptors for logging and request timing. Registers custom interceptors with setupInterceptorsForExpress() and applies them with @UseInterceptors().

Documentation

Quick start

npm install
cp .env.example .env
npm run dev

Open http://localhost:3000/api/demo and watch the server logs for request/response lines from LoggingInterceptor.

Tests

npm test

Related examples

Example Topic
01-starter-api Application lifecycle and controllers
08-events Cross-cutting event handlers