feat: add auth proxy controller for login and token exchange

Adds POST /auth/login and POST /auth/tokens endpoints that proxy
GraphQL mutations to the fortytwo-eap-core platform, letting the
frontend use only the sidecar URL for authentication.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 09:08:07 +05:30
parent 702afabfa7
commit 3e0d9a4351
3 changed files with 96 additions and 0 deletions

View File

@@ -2,8 +2,10 @@ import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import configuration from './config/configuration';
import { AiModule } from './ai/ai.module';
import { AuthModule } from './auth/auth.module';
import { PlatformModule } from './platform/platform.module';
import { ExotelModule } from './exotel/exotel.module';
import { CallEventsModule } from './call-events/call-events.module';
@Module({
imports: [
@@ -12,8 +14,10 @@ import { ExotelModule } from './exotel/exotel.module';
isGlobal: true,
}),
AiModule,
AuthModule,
PlatformModule,
ExotelModule,
CallEventsModule,
],
})
export class AppModule {}