This commit is contained in:
MythEclipse
2026-06-03 15:01:34 +07:00
parent 99190a830a
commit 7904d7f38d
9 changed files with 422 additions and 173 deletions
@@ -0,0 +1,17 @@
import express, { type Router } from "express";
import { asyncHandler } from "../../shared/middlewares/index.js";
import {
clearMascotChatHistory,
getMascotChatHistory,
handleMascotChat,
} from "./mascot-chat.controller.js";
export function createMascotChatRouter(): Router {
const router = express.Router();
router.post("/mascot/chat", asyncHandler(handleMascotChat));
router.get("/mascot/chat/history", asyncHandler(getMascotChatHistory));
router.delete("/mascot/chat/history", asyncHandler(clearMascotChatHistory));
return router;
}