timetable.route.js 308 Bytes
Newer Older
1
2
3
4
5
6
7
import express from "express";
import timetableCtrl from "../controllers/timetable.controller.js";

const router = express.Router();

router
    .route("/")
8
    .get(timetableCtrl.getAll)
9
10
    .post(timetableCtrl.submit)

11
12
13
14
router
    .route("/:timeId")
    .delete(timetableCtrl.remove)

15
export default router;