2026-06-03 15:01:34 +07:00
|
|
|
import express, { type Router } from "express";
|
|
|
|
|
import {
|
|
|
|
|
clearMascotChatHistory,
|
|
|
|
|
getMascotChatHistory,
|
|
|
|
|
handleMascotChat,
|
|
|
|
|
} from "./mascot-chat.controller.js";
|
|
|
|
|
|
|
|
|
|
export function createMascotChatRouter(): Router {
|
|
|
|
|
const router = express.Router();
|
|
|
|
|
|
2026-06-09 19:46:08 +07:00
|
|
|
router.post("/mascot/chat", handleMascotChat);
|
|
|
|
|
router.get("/mascot/chat/history", getMascotChatHistory);
|
|
|
|
|
router.delete("/mascot/chat/history", clearMascotChatHistory);
|
2026-06-03 15:01:34 +07:00
|
|
|
|
|
|
|
|
return router;
|
|
|
|
|
}
|