```
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user