plan.route.js 337 Bytes
Newer Older
Choi Ga Young's avatar
Choi Ga Young committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import express from 'express';
import planCtrl from '../controllers/plan.controller.js'

const router = express.Router();

router
  .route("/addplan/:subjectId")
  .post(planCtrl.addPlan)

router
  .route("/edit/:subjectId")
  .put(planCtrl.editPlan)

router
  .route("/getDetail/:planId")
  .get(planCtrl.getInfo)
export default router;