|
|
@ -1,8 +1,10 @@ |
|
|
|
import { EventsModule } from '@ghostfolio/api/events/events.module'; |
|
|
|
import { HtmlTemplateMiddleware } from '@ghostfolio/api/middlewares/html-template.middleware'; |
|
|
|
import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; |
|
|
|
import { CronModule } from '@ghostfolio/api/services/cron/cron.module'; |
|
|
|
import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; |
|
|
|
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.module'; |
|
|
|
import { I18nService } from '@ghostfolio/api/services/i18n/i18n.service'; |
|
|
|
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|
|
|
import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; |
|
|
|
import { DataGatheringModule } from '@ghostfolio/api/services/queues/data-gathering/data-gathering.module'; |
|
|
@ -13,7 +15,7 @@ import { |
|
|
|
} from '@ghostfolio/common/config'; |
|
|
|
|
|
|
|
import { BullModule } from '@nestjs/bull'; |
|
|
|
import { Module } from '@nestjs/common'; |
|
|
|
import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common'; |
|
|
|
import { ConfigModule } from '@nestjs/config'; |
|
|
|
import { EventEmitterModule } from '@nestjs/event-emitter'; |
|
|
|
import { ScheduleModule } from '@nestjs/schedule'; |
|
|
@ -130,6 +132,11 @@ import { UserModule } from './user/user.module'; |
|
|
|
TagsModule, |
|
|
|
UserModule, |
|
|
|
WatchlistModule |
|
|
|
] |
|
|
|
], |
|
|
|
providers: [I18nService] |
|
|
|
}) |
|
|
|
export class AppModule {} |
|
|
|
export class AppModule implements NestModule { |
|
|
|
configure(consumer: MiddlewareConsumer) { |
|
|
|
consumer.apply(HtmlTemplateMiddleware).forRoutes('*'); |
|
|
|
} |
|
|
|
} |
|
|
|