feat: add chatbot module and service

This commit is contained in:
2026-09-27 17:45:11 +03:30
parent 17b47ffd91
commit 76f6c97a9e
9 changed files with 150 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Body, Controller, Post } from '@nestjs/common';
import { ChatbotService } from './providers/chatbot.service';
import { Public } from '../auth/decorators/public.decorator';
@Controller('chatbot')
export class ChatbotController {
constructor(
/**
* Inject Chatbot Service
*/
private readonly chatbotService: ChatbotService,
) {}
@Post('chat')
// TEMP:
@Public()
public async chat(@Body('message') message: string) {
return this.chatbotService.chat(message);
}
}