imaginar/routes/chatRoutes.js
2024-10-19 20:24:54 +09:00

10 lines
355 B
JavaScript

const express = require('express');
const chatController = require('../controllers/chatController');
const { isAuthenticated } = require('../utils/auth');
const router = express.Router();
// メッセージ送信 (AJAX/WebSocket対応)
router.post('/chat/:botId/send-message', isAuthenticated, chatController.sendMessageAsync);
module.exports = router;