subject.route.js 348 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
import express from 'express';
import subjectCtrl from '../controllers/subject.controller.js';

const router = express.Router();

router
  .route("/addsubject")
  .post(subjectCtrl.addsubject)

10
11
12
13
14
15
16
17
18
router
  .route("/:subjectId")
  .get(subjectCtrl.getSubInfo)

router
  .route("/editsubject")
  .post(subjectCtrl.editSubject)

  
19
export default router;