Browse Source

Refactoring

release/2.147.0-beta.1
Thomas Kaul 5 days ago
parent
commit
7698c57f32
  1. 6
      apps/api/src/app/app.module.ts
  2. 2
      apps/api/src/app/endpoints/assets/assets.controller.ts
  3. 6
      apps/api/src/app/endpoints/assets/assets.module.ts

6
apps/api/src/app/app.module.ts

@ -32,6 +32,7 @@ import { AuthModule } from './auth/auth.module';
import { CacheModule } from './cache/cache.module';
import { AiModule } from './endpoints/ai/ai.module';
import { ApiKeysModule } from './endpoints/api-keys/api-keys.module';
import { AssetsModule } from './endpoints/assets/assets.module';
import { BenchmarksModule } from './endpoints/benchmarks/benchmarks.module';
import { GhostfolioModule } from './endpoints/data-providers/ghostfolio/ghostfolio.module';
import { MarketDataModule } from './endpoints/market-data/market-data.module';
@ -51,7 +52,6 @@ import { SitemapModule } from './sitemap/sitemap.module';
import { SubscriptionModule } from './subscription/subscription.module';
import { SymbolModule } from './symbol/symbol.module';
import { UserModule } from './user/user.module';
import { WebManifestModule } from './webmanifest/webmanifest.module';
@Module({
controllers: [AppController],
@ -62,6 +62,7 @@ import { WebManifestModule } from './webmanifest/webmanifest.module';
AiModule,
ApiKeysModule,
AssetModule,
AssetsModule,
AuthDeviceModule,
AuthModule,
BenchmarksModule,
@ -127,8 +128,7 @@ import { WebManifestModule } from './webmanifest/webmanifest.module';
SymbolModule,
TagsModule,
TwitterBotModule,
UserModule,
WebManifestModule
UserModule
],
providers: [CronService]
})

2
apps/api/src/app/webmanifest/webmanifest.controller.ts → apps/api/src/app/endpoints/assets/assets.controller.ts

@ -14,7 +14,7 @@ import { readFileSync } from 'fs';
import { join } from 'path';
@Controller('assets')
export class WebManifestController {
export class AssetsController {
private webManifest = '';
public constructor(

6
apps/api/src/app/webmanifest/webmanifest.module.ts → apps/api/src/app/endpoints/assets/assets.module.ts

@ -2,10 +2,10 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/con
import { Module } from '@nestjs/common';
import { WebManifestController } from './webmanifest.controller';
import { AssetsController } from './assets.controller';
@Module({
controllers: [WebManifestController],
controllers: [AssetsController],
providers: [ConfigurationService]
})
export class WebManifestModule {}
export class AssetsModule {}
Loading…
Cancel
Save