import { createRecord,getRecord,updateRecord,deleteRecord } from "../controllers/RecordController.js";
import express from 'express'
import protect from '../middleware/auth.js';

const router = express.Router();

router.post("/",protect,  createRecord);
router.get("/",protect,  getRecord);
router.put("/:id",protect,  updateRecord);
router.delete("/:id", protect, deleteRecord );

export default router