// routes/dailyIssueReportRoutes.js
const express = require('express');
const router = express.Router();

const {
  createDailyIssueReport,
  getDailyIssuesByDate,
  removeDailyIssue
} = require('../controllers/dailyIssueReportController');

// 1. 등록 (단일 또는 다중)
router.post('/', createDailyIssueReport);

// 2. 날짜별 조회 (?date=YYYY-MM-DD 형식)
router.get('/', getDailyIssuesByDate);

// 3. 삭제
router.delete('/:id', removeDailyIssue);

module.exports = router;