mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 01:19:40 +02:00
Implement custom NestJS API Gateway for mana-search, mana-stt, and mana-tts: - API Key management with CRUD operations and key regeneration - Redis-based sliding window rate limiting - Credit-based billing with tier support (free, pro, enterprise) - Usage tracking with daily aggregates - Proxy services to backend microservices - Prometheus metrics endpoint - JWT auth for management API, API key auth for public API Database schema uses separate `api_gateway` schema in shared manacore DB.
10 lines
303 B
TypeScript
10 lines
303 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { UsageService } from './usage.service';
|
|
import { ApiKeysModule } from '../api-keys/api-keys.module';
|
|
|
|
@Module({
|
|
imports: [forwardRef(() => ApiKeysModule)],
|
|
providers: [UsageService],
|
|
exports: [UsageService],
|
|
})
|
|
export class UsageModule {}
|