Spaces:
Sleeping
Sleeping
anoderb
feat: implement chatbot service, active shift logic corrections, audit logs, and void transaction tool
48013ee | /** | |
| * chatbot.route.ts | |
| * Route definitions untuk chatbot API. | |
| * Semua endpoint memerlukan autentikasi (login). | |
| */ | |
| import { Router } from 'express'; | |
| import { ChatbotController } from '../controllers/chatbot.controller'; | |
| import { authenticate } from '../middlewares/auth.middleware'; | |
| const router = Router(); | |
| // Semua route chatbot butuh autentikasi | |
| router.use(authenticate); | |
| // POST /api/chatbot/pesan — Kirim pesan ke chatbot | |
| router.post('/pesan', ChatbotController.kirimPesan); | |
| // POST /api/chatbot/konfirmasi — Konfirmasi/batalkan aksi pending | |
| router.post('/konfirmasi', ChatbotController.konfirmasiAksi); | |
| // DELETE /api/chatbot/riwayat — Hapus riwayat chat | |
| router.delete('/riwayat', ChatbotController.hapusRiwayat); | |
| export default router; | |