diff --git a/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts b/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts index 039a6f9b..f6dc32fd 100644 --- a/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts +++ b/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts @@ -25,7 +25,7 @@ export class IdentityServiceClient implements OnModuleInit { private readonly enabled: boolean; constructor(private readonly configService: ConfigService) { - this.baseUrl = this.configService.get('IDENTITY_SERVICE_URL') || 'http://identity-service:3001'; + this.baseUrl = this.configService.get('IDENTITY_SERVICE_URL') || 'http://rwa-identity-service:3000'; this.enabled = this.configService.get('IDENTITY_SERVICE_ENABLED') !== false; } diff --git a/backend/services/identity-service/src/app.module.ts b/backend/services/identity-service/src/app.module.ts index e0a96362..04afe9bf 100644 --- a/backend/services/identity-service/src/app.module.ts +++ b/backend/services/identity-service/src/app.module.ts @@ -22,6 +22,7 @@ import { HealthController } from '@/api/controllers/health.controller'; import { ReferralsController } from '@/api/controllers/referrals.controller'; import { AuthController } from '@/api/controllers/auth.controller'; import { TotpController } from '@/api/controllers/totp.controller'; +import { InternalController } from '@/api/controllers/internal.controller'; // Application Services import { UserApplicationService } from '@/application/services/user-application.service'; @@ -136,14 +137,16 @@ export class ApplicationModule {} // ============ API Module ============ @Module({ - imports: [ApplicationModule], + imports: [ApplicationModule, InfrastructureModule], controllers: [ HealthController, UserAccountController, ReferralsController, AuthController, TotpController, + InternalController, ], + providers: [UserAccountRepositoryImpl], }) export class ApiModule {}