const express = require('express')

const router = express.Router()

// const {protect} =require('../middleware/auth')
const {addsales,getsalesbyid,getsales,updatesales,deletesales} = require('../controllers/salesController')

// router.use(protect)
router.post('/addsales',addsales)
router.get('/getsales',getsales)
router.get('/getsalesbyid/:id',getsalesbyid)
router.put('/updatesales/:id',updatesales)
router.delete('/deletesales/:id',deletesales)

module.exports =router