40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { AppController } from './app.controller';
|
|
import { AppService } from './app.service';
|
|
import { ParticipantModule } from './participant/participant.module';
|
|
import { QuestionModule } from './question/question.module';
|
|
import { AnswerModule } from './answer/answer.module';
|
|
import { AttachmentModule } from './attachment/attachment.module';
|
|
import { FormModule } from './form/form.module';
|
|
import { FormPageModule } from './formPage/formPage.module';
|
|
import { FormResultModule } from './formResult/formResult.module';
|
|
import { FormSectionModule } from './formSection/formSection.module';
|
|
import { OptionModule } from './option/option.module';
|
|
import { ParticipanGrouptModule } from './participantGroup/participantGroup.module';
|
|
import { RealmModule } from './realm/realm.module';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { typeOrmConfig } from './config/database.config';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forRoot(typeOrmConfig),
|
|
ConfigModule.forRoot({
|
|
isGlobal: true, // Makes ConfigModule available globally
|
|
}),
|
|
ParticipantModule,
|
|
QuestionModule,
|
|
AnswerModule,
|
|
AttachmentModule,
|
|
FormModule,
|
|
FormPageModule,
|
|
FormResultModule,
|
|
FormSectionModule,
|
|
OptionModule,
|
|
ParticipanGrouptModule,
|
|
RealmModule
|
|
],
|
|
controllers: [AppController],
|
|
providers: [AppService],
|
|
})
|
|
export class AppModule {} |