9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const { handleYocoWebhook, handleWhatsappWebhook } = require('../controllers/webhookController');
|
|
|
|
// Yoco webhook endpoint
|
|
router.post('/yoco', handleYocoWebhook);
|
|
router.post('/whatsapp', handleWhatsappWebhook);
|
|
|
|
module.exports = router; |