From 7698c57f3298829a13cfe008e858d25c795b45ff Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 17 Mar 2025 22:13:17 +0100 Subject: [PATCH] Refactoring --- apps/api/src/app/app.module.ts | 6 +++--- .../assets/assets.controller.ts} | 2 +- .../assets/assets.module.ts} | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename apps/api/src/app/{webmanifest/webmanifest.controller.ts => endpoints/assets/assets.controller.ts} (96%) rename apps/api/src/app/{webmanifest/webmanifest.module.ts => endpoints/assets/assets.module.ts} (58%) diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index 3cfe830d9..99080e1e1 100644 --- a/apps/api/src/app/app.module.ts +++ b/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] }) diff --git a/apps/api/src/app/webmanifest/webmanifest.controller.ts b/apps/api/src/app/endpoints/assets/assets.controller.ts similarity index 96% rename from apps/api/src/app/webmanifest/webmanifest.controller.ts rename to apps/api/src/app/endpoints/assets/assets.controller.ts index b2dfe0ce0..3ea3a33d8 100644 --- a/apps/api/src/app/webmanifest/webmanifest.controller.ts +++ b/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( diff --git a/apps/api/src/app/webmanifest/webmanifest.module.ts b/apps/api/src/app/endpoints/assets/assets.module.ts similarity index 58% rename from apps/api/src/app/webmanifest/webmanifest.module.ts rename to apps/api/src/app/endpoints/assets/assets.module.ts index d8f366ee5..51d330e50 100644 --- a/apps/api/src/app/webmanifest/webmanifest.module.ts +++ b/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 {}