schedule.route.js 431 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import express from 'express';
import kuCtrl from "../controllers/ku.controller.js";
import scheduleCtrl from "../controllers/schedule.controller.js";

const router = express.Router();

router
    .route("/ku")
    .post(kuCtrl.create)
    .put(kuCtrl.edit)
    .delete(kuCtrl.remove)

router
    .route("/:userId")
    .post(scheduleCtrl.create)
    .put(scheduleCtrl.edit)
    .delete(scheduleCtrl.remove)

export default router;