import { All , Controller , Param , Req , Res } from "@nestjs/common" ; import { Gateway , InjectGateway } from "@nestcloud/gateway" ; import { Request , Response } from 'express' ; @ Controller ( '/api/:service' ) export class ApiController { constructor ( @ InjectGateway ( ) private readonly gateway ) { } @ All ( ) do ( @ Req ( ) req , @ Res ( ) res , @ Param ( 'service' ) id ) { this . gateway . forward ( req , res , id ) ; } }