Files
bw-mini-app-server/src/app.module.ts
imeepos cf6844ad6e refactor: 移除模板迁移API接口,改为migrations阶段处理
- 删除 template-migration.service.ts 文件
- 移除控制器中的迁移相关API接口 (/migrate, /sync, /admin/migration-report)
- 清理文档中的迁移服务相关内容
- 添加 data-source.ts 配置文件用于运行数据库迁移
- 模板迁移功能完全通过数据库migration脚本处理
2025-09-04 15:36:26 +08:00

25 lines
865 B
TypeScript

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { TemplateService } from './templates/index';
import { TemplateManager } from './templates/types';
import { typeOrmConfig } from './config/database.config';
import { N8nTemplateEntity } from './entities/n8n-template.entity';
import { N8nTemplateFactoryService } from './services/n8n-template-factory.service';
import { TemplateController } from './controllers/template.controller';
@Module({
imports: [
TypeOrmModule.forRoot(typeOrmConfig),
TypeOrmModule.forFeature([N8nTemplateEntity])
],
controllers: [AppController, TemplateController],
providers: [
TemplateService,
TemplateManager,
N8nTemplateFactoryService,
],
exports: [N8nTemplateFactoryService]
})
export class AppModule {}