import { Controller , Get } from '@nestjs/common' ; import { DebugLog } from '../debug-log.decorator' ; import { SampleService } from './sample.service' ; /**
 * route /test/debug/*
 */ @ Controller ( 'debug' ) @ DebugLog ( 'ClassContext' ) export class SampleController { constructor ( private sample ) { } @ Get ( ) @ DebugLog ( 'MethodContext' ) public step ( ) { this . sample . stepOne ( 'hello' ) ; this . sample . stepTwo ( 'world' ) ; this . sample . stepThree ( ) ; return 'OK' ; } @ Get ( 'chain' ) public stepChain ( ) { return this . sample . stepStart ( ) ; } }