import { Controller , Get , Param , Res , Post , Inject , CACHE_MANAGER , UseInterceptors , CacheInterceptor , Logger } from '@nestjs/common' ; import { STATIC } from '@environments' ; @ Controller ( ) export class AppController { @ Get ( 'getHello' ) getHello ( ) { return 'Hello World!' ; } @ Get ( `${ STATIC }/:fileId` ) getUpload ( @ Param ( 'fileId' ) fileId , @ Res ( ) res ) { return res . sendFile ( fileId , { root : STATIC } ) ; } @ Post ( '/gitlab' ) postGitlab ( @ Res ( ) res ) { return res . body ; } }