Files
History_Api/internal/routes/chatbotRoute.go
AzenKain 600246426b
All checks were successful
Build and Release / release (push) Successful in 1m30s
feat: implement chat and conversation history management with database schema and API endpoints
2026-05-08 21:03:26 +07:00

18 lines
450 B
Go

package routes
import (
"history-api/internal/controllers"
"history-api/internal/middlewares"
"history-api/internal/repositories"
"github.com/gofiber/fiber/v3"
)
func ChatbotRoutes(app *fiber.App, controller *controllers.ChatbotController, userRepo repositories.UserRepository) {
route := app.Group("/chatbot")
route.Use(middlewares.JwtAccess(userRepo))
route.Post("/chat", controller.Chat)
route.Get("/history", controller.GetHistory)
}