Update app.module.ts

This commit is contained in:
egelhaus 2025-04-28 13:11:42 +02:00 committed by GitHub
parent dbe81682f0
commit 9aacd5cddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 4 deletions

View File

@ -25,7 +25,7 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module';
ThrottlerModule.forRoot([ ThrottlerModule.forRoot([
{ {
ttl: 3600000, ttl: 3600000,
limit: process.env.API_LIMIT || 30, limit: process.env.API_LIMIT ? Number(process.env.API_LIMIT) : 30,
}, },
]), ]),
], ],
@ -40,8 +40,15 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module';
useClass: PoliciesGuard, useClass: PoliciesGuard,
}, },
], ],
get exports() { exports: [
return [...this.imports]; BullMqModule,
}, DatabaseModule,
ApiModule,
PluginModule,
PublicApiModule,
AgentModule,
McpModule,
ThrottlerModule,
],
}) })
export class AppModule {} export class AppModule {}