Skip to content

Commit

Permalink
fix: 충돌 해결 #88
Browse files Browse the repository at this point in the history
  • Loading branch information
hyohyo12 committed Nov 13, 2024
1 parent 2424402 commit 8c4e54d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,31 @@ import { AuthModule } from './auth/auth.module';
import { UserModule } from './user/user.module';
import { BannerModule } from './banner/banner.module';
import { AdminModule } from './admin/admin.module';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { APP_GUARD, APP_INTERCEPTOR } from '@nestjs/core';
import { TimezoneInterceptor } from './config/TimezoneInterceptor';
import { StorageModule } from './storage/storage.module';
import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';

@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
TypeOrmModule.forRootAsync({
useClass: TypeOrmConfigService,
}),
ThrottlerModule.forRoot([
{
ttl: 60000,
limit: 3,
},
]),
AuthModule,
UserModule,
PlaceModule,
MapModule,
CourseModule,
BannerModule,
AdminModule,
StorageModule,
],
controllers: [AppController],
providers: [
Expand All @@ -36,6 +45,10 @@ import { TimezoneInterceptor } from './config/TimezoneInterceptor';
provide: APP_INTERCEPTOR,
useClass: TimezoneInterceptor,
},
{
provide: APP_GUARD,
useClass: ThrottlerGuard,
},
],
})
export class AppModule {}

0 comments on commit 8c4e54d

Please sign in to comment.