import { Controller , Get , Req , Res , } from '@nestjs/common' ; import { Request , Response , } from 'express' ; import { NextService } from '@nestpress/next' ; @ Controller ( ) export class HomeController { constructor ( private readonly nextService ) { } @ Get ( ) public showHome ( @ Req ( ) req , @ Res ( ) res ) { return this . nextService . render ( '/index' , req , res ) ; } }