feat: add throttler

This commit is contained in:
2026-11-06 18:32:48 +03:30
parent 71ce020803
commit 2051090d3d
10 changed files with 16 additions and 18 deletions
@@ -12,8 +12,10 @@ import { ChatDTO } from './dtos/chat.dto';
import { ActiveUser } from '@/common/decorators/active-user.decorator';
import { User } from '../users/entities/user.entity';
import { ApiAppResponse } from '@/common/decorators/api-app-response.decorator';
import { Throttle } from '@nestjs/throttler';
@Controller('chatbot')
@Throttle({ default: { limit: 30, ttl: 60_000 } })
export class ChatbotController {
constructor(
/**