imaginar/routes/chatRoutes.js

10 lines
355 B
JavaScript
Raw Normal View History

2024-10-19 11:24:54 +00:00
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;