10 lines
355 B
JavaScript
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;
|