/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
integration/scopes/src/request-chain/request-chain.controller.ts
14 строк
438 B
Kamil Myśliwiec
feat(core): request-scoped custom providers improvements
29 ноя 2019, 15:34
Не верифицирован
29 ноя 2019, 15:34
578603e
Код
Авторство
О чём код?
import { Controller, Get, UseInterceptors } from '@nestjs/common'; import { LoggingInterceptor } from './interceptors/logging.interceptor'; import { RequestChainService } from './request-chain.service'; @Controller('hello') export class RequestChainController { constructor(private readonly chainService: RequestChainService) {} @UseInterceptors(LoggingInterceptor) @Get() greeting(): void { this.chainService.call(); } }