const express = require('express')

const router = express.Router()

// const {protect} =require('../middleware/auth')
const {addsupplier,getsupplierbyid,getsupplier,updatesupplier,deletesupplier} = require('../controllers/supplierController')

// router.use(protect)
router.post('/addsupplier',addsupplier)
router.get('/getsupplier',getsupplier)
router.get('/getsupplierbyid/:id',getsupplierbyid)
router.put('/updatesupplier/:id',updatesupplier)
router.delete('/deletesupplier/:id',deletesupplier)

module.exports =router