import express from 'express';
import planCtrl from '../controllers/plan.controller.js'

const router = express.Router();

router
  .route("/")
  .post(planCtrl.create)

router
  .route("/:planId")
  .get(planCtrl.getOne)
  .put(planCtrl.edit)
  .delete(planCtrl.remove)

router.param("planId", planCtrl.getParams)

export default router;