mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
3 years ago
committed by
GitHub
12 changed files with 53 additions and 51 deletions
@ -1,18 +1,20 @@ |
|||||
import { AuthDeviceController } from '@ghostfolio/api/app/auth-device/auth-device.controller'; |
import { AuthDeviceController } from '@ghostfolio/api/app/auth-device/auth-device.controller'; |
||||
import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; |
import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; |
||||
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
import { ConfigurationModule } from '@ghostfolio/api/services/configuration.module'; |
||||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
||||
import { Module } from '@nestjs/common'; |
import { Module } from '@nestjs/common'; |
||||
import { JwtModule } from '@nestjs/jwt'; |
import { JwtModule } from '@nestjs/jwt'; |
||||
|
|
||||
@Module({ |
@Module({ |
||||
controllers: [AuthDeviceController], |
controllers: [AuthDeviceController], |
||||
imports: [ |
imports: [ |
||||
|
ConfigurationModule, |
||||
JwtModule.register({ |
JwtModule.register({ |
||||
secret: process.env.JWT_SECRET_KEY, |
secret: process.env.JWT_SECRET_KEY, |
||||
signOptions: { expiresIn: '180 days' } |
signOptions: { expiresIn: '180 days' } |
||||
}) |
}), |
||||
|
PrismaModule |
||||
], |
], |
||||
providers: [AuthDeviceService, ConfigurationService, PrismaService] |
providers: [AuthDeviceService] |
||||
}) |
}) |
||||
export class AuthDeviceModule {} |
export class AuthDeviceModule {} |
||||
|
@ -1,30 +1,27 @@ |
|||||
import { CacheService } from '@ghostfolio/api/app/cache/cache.service'; |
import { CacheService } from '@ghostfolio/api/app/cache/cache.service'; |
||||
import { RedisCacheModule } from '@ghostfolio/api/app/redis-cache/redis-cache.module'; |
import { RedisCacheModule } from '@ghostfolio/api/app/redis-cache/redis-cache.module'; |
||||
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
import { ConfigurationModule } from '@ghostfolio/api/services/configuration.module'; |
||||
import { DataGatheringModule } from '@ghostfolio/api/services/data-gathering.module'; |
import { DataGatheringModule } from '@ghostfolio/api/services/data-gathering.module'; |
||||
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service'; |
|
||||
import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; |
import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; |
||||
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data.module'; |
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data.module'; |
||||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
||||
import { SymbolProfileModule } from '@ghostfolio/api/services/symbol-profile.module'; |
import { SymbolProfileModule } from '@ghostfolio/api/services/symbol-profile.module'; |
||||
import { Module } from '@nestjs/common'; |
import { Module } from '@nestjs/common'; |
||||
|
|
||||
import { CacheController } from './cache.controller'; |
import { CacheController } from './cache.controller'; |
||||
|
|
||||
@Module({ |
@Module({ |
||||
|
exports: [CacheService], |
||||
|
controllers: [CacheController], |
||||
imports: [ |
imports: [ |
||||
|
ConfigurationModule, |
||||
DataGatheringModule, |
DataGatheringModule, |
||||
DataProviderModule, |
DataProviderModule, |
||||
ExchangeRateDataModule, |
ExchangeRateDataModule, |
||||
|
PrismaModule, |
||||
RedisCacheModule, |
RedisCacheModule, |
||||
SymbolProfileModule |
SymbolProfileModule |
||||
], |
], |
||||
controllers: [CacheController], |
providers: [CacheService] |
||||
providers: [ |
|
||||
CacheService, |
|
||||
ConfigurationService, |
|
||||
DataGatheringService, |
|
||||
PrismaService |
|
||||
] |
|
||||
}) |
}) |
||||
export class CacheModule {} |
export class CacheModule {} |
||||
|
Loading…
Reference in new issue