const express = require("express");
const {
  createPayment,
  getPayments,
  getBillByPaymentId,
  getDailyReport,
} = require("../controller/paymentController");
const { requireAuth } = require("../middleware/auth");

const router = express.Router();

router.get("/", requireAuth, getPayments);
router.post("/", requireAuth, createPayment);
router.get("/bill/:id", requireAuth, getBillByPaymentId);
router.get("/reports/daily", requireAuth, getDailyReport);

module.exports = router;
