import { Controller , Get } from '@nestjs/common' ; import { DefaultService } from './default.service' ; @ Controller ( ) export class DefaultController { constructor ( private readonly appService ) { } @ Get ( ) getHello ( ) { return this . appService . getHello ( ) ; } @ Get ( '/send' ) async send ( ) { await this . appService . sendToFixedConsumer ( ) ; return this . appService . send ( ) ; } @ Get ( '/send/consumer' ) async sendToConsumer ( ) { return await this . appService . send ( ) ; } @ Get ( '/send/fixed-consumer' ) async sendToFixedConsumer ( ) { return await this . appService . sendToFixedConsumer ( ) ; } }