26 lines
751 B
TypeScript
26 lines
751 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { envValidationSchema } from './common/env.validation';
|
|
import { CurrentModule } from './current/current.module';
|
|
import { DbModule } from './db/db.module';
|
|
import { EdgeModule } from './edge/edge.module';
|
|
import { HealthController } from './health.controller';
|
|
import { HistoryModule } from './history/history.module';
|
|
import { IngestModule } from './ingest/ingest.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
validationSchema: envValidationSchema,
|
|
}),
|
|
DbModule,
|
|
IngestModule,
|
|
EdgeModule,
|
|
CurrentModule,
|
|
HistoryModule,
|
|
],
|
|
controllers: [HealthController],
|
|
})
|
|
export class AppModule {}
|