import { Router } from 'express';
import * as customerController from '../controllers/customer.controller.js';
import { authenticate, requirePermission } from '../middleware/auth.js';

const router = Router();

router.put('/:id', authenticate, requirePermission('customers:update'), customerController.updateAddress);
router.delete('/:id', authenticate, requirePermission('customers:delete'), customerController.deleteAddress);

export default router;
