import express from  'express';
import { createSparePart,getSpareParts } from '../controllers/sparePartController.js';
import {protect} from '../middlewares/auth.js'

const router = express.Router();

router.post("/", protect, createSparePart);

router.get("/", protect, getSpareParts);

export default router;