import express from "express";
import { createCar, getCar, updateCar, deleteCar } from "../controllers/carController.js";
import protect from "../middleware/auth.js";
 
const router = express.Router();
 
router.post("/",protect, createCar);
router.get("/", protect, getCar);
router.put("/:id",protect,  updateCar);
router.delete("/:id",protect,  deleteCar);
 
export default router;