editDBRouter.js 558 B

1234567891011121314151617181920
  1. const express = require("express");
  2. const {
  3. editProc,
  4. editVideoCard,
  5. postEditProc,
  6. postEditVideoCard,
  7. } = require("../Controllers/editDBController");
  8. const editRouter = express.Router();
  9. const urlencodedParser = express.urlencoded({ extended: false });
  10. editRouter.get("/proc/:procID", editProc);
  11. editRouter.get("/videoCard/:videoCardID", editVideoCard);
  12. editRouter.post("/proc/:procID", urlencodedParser, postEditProc);
  13. editRouter.post("/videoCard/:videoCardID", urlencodedParser, postEditVideoCard);
  14. module.exports = {
  15. editRouter,
  16. };