const express = require('express');
const { authenticate } = require('../middleware/auth');
const PaymentController = require('../controllers/PaymentController');

const router = express.Router();

router.post('/', authenticate, PaymentController.create);
router.get('/booking/:bookingId', authenticate, PaymentController.getByBooking);

module.exports = router;
