import express from "express";
import { createServiceRecord, getServiceRecord, updateServiceRecord, deleteServiceRecord } from "../controllers/serviceRecordController.js";
 import protect from "../middleware/auth.js";


const router = express.Router();
 
router.post("/",protect,  createServiceRecord);
router.get("/",protect,  getServiceRecord);
router.put("/:id",protect,  updateServiceRecord);
router.delete("/:id",protect,  deleteServiceRecord);
 
export default router;