import { IncomingMessage , ServerResponse , } from 'http' ; import { Controller , Get , Req , Res , } from '@nestjs/common' ; import { NextService } from '@nestpress/next' ; @ Controller ( ) export class HomeController { constructor ( private readonly next ) { } @ Get ( ) public async showHome ( @ Req ( ) req , @ Res ( ) res ) { this . next . render ( '/index' , req , res ) ; } }