const express = require('express');
const router = express.Router();
const auth = require('../middleware/auth');
const { getSales, recordSale, deleteSale } = require('../controllers/salesController');

router.get('/', auth, getSales);
router.post('/', auth, recordSale);
router.delete('/:id', auth, deleteSale);

module.exports = router;
