
import { createStudent,getStudent,updateStudent,deleteStudent } from "../controllers/StudentController.js";
import express from 'express'
import protect from '../middleware/auth.js';

const router = express.Router();

router.post("/",protect,  createStudent);
router.get("/",protect,  getStudent);
router.put("/:id",protect,  updateStudent);
router.delete("/:id",protect,  deleteStudent);

export default router