mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-15 18:52:51 +03:00
30 lines
783 B
TypeScript
30 lines
783 B
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { AppController } from './app.controller';
|
|
import { CacheModule } from './cache';
|
|
import { ConfigModule } from './config';
|
|
import { MetricsModule } from './metrics';
|
|
import { BusinessModules } from './modules';
|
|
import { AuthModule } from './modules/auth';
|
|
import { PrismaModule } from './prisma';
|
|
import { SessionModule } from './session';
|
|
import { StorageModule } from './storage';
|
|
import { RateLimiterModule } from './throttler';
|
|
|
|
const BasicModules = [
|
|
PrismaModule,
|
|
ConfigModule.forRoot(),
|
|
CacheModule,
|
|
StorageModule.forRoot(),
|
|
MetricsModule,
|
|
SessionModule,
|
|
RateLimiterModule,
|
|
AuthModule,
|
|
];
|
|
|
|
@Module({
|
|
imports: [...BasicModules, ...BusinessModules],
|
|
controllers: [AppController],
|
|
})
|
|
export class AppModule {}
|