const express = require('express');
const router = express.Router();
const {
  createBranchGroup,
  getBranchGroups,
  getBranchGroupById,
  updateBranchGroup,
  deleteBranchGroup
} = require('../controllers/branchGroupController');

// Create a new branch group
router.post('/', createBranchGroup);

// Get all branch groups for a company
router.get('/company/:companyId', getBranchGroups);

// Get a single branch group by ID
router.get('/:id', getBranchGroupById);

// Update a branch group by ID
router.put('/:id', updateBranchGroup);

// Delete a branch group by ID
router.delete('/:id', deleteBranchGroup);

module.exports = router;
