diff --git a/src/lib/resource/files/ts/__name__.controller.ts b/src/lib/resource/files/ts/__name__.controller.ts index b2b878888..8d1b7b4a6 100644 --- a/src/lib/resource/files/ts/__name__.controller.ts +++ b/src/lib/resource/files/ts/__name__.controller.ts @@ -1,4 +1,4 @@ -<% if (crud && type === 'rest') { %>import { Controller, Get, Post, Body, Put, Param, Delete } from '@nestjs/common';<% +<% if (crud && type === 'rest') { %>import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';<% } else if (crud && type === 'microservice') { %>import { Controller } from '@nestjs/common'; import { MessagePattern, Payload } from '@nestjs/microservices';<% } else { %>import { Controller } from '@nestjs/common';<%