Kaynağa Gözat

ts template

lrf 2 yıl önce
ebeveyn
işleme
5200d66d22
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/public/ts-template.js

+ 1 - 1
app/public/ts-template.js

@@ -62,7 +62,7 @@ const ControllerContext = (data) => {
   fc.push(`import { ApiResponse, ApiTags } from '@midwayjs/swagger';`);
   fc.push(`import { Validate } from '@midwayjs/validate';`);
   fc.push(`@ApiTags(['${name_zh}'])`);
-  fc.push(`@Controller('/${prefix}')`);
+  fc.push(`@Controller('/${table_name}')`);
   fc.push(`export class ${prefix}Controller extends BaseController {`);
   fc.push(`  @Inject()`);
   fc.push(`  service: ${prefix}Service;`);