import express from 'express'
import { createSupplier, getAllSuppliers } from '../controllers/SupplierController.js'
import protect from '../middleware/auth.js'

const router = express.Router();

router.post("/", protect, createSupplier);
router.get("/", protect, getAllSuppliers);

export default router;