deleteDBRouter.js 586 B

1234567891011121314151617
  1. const express = require("express");
  2. const {
  3. deleteProcDB,
  4. deleteVideoCardDB,
  5. postDeleteVideoCardDB,
  6. postDeleteProcDB,
  7. } = require("../Controllers/deleteBDController");
  8. const deleteBaseRouter = express.Router();
  9. const urlencodedParser = express.urlencoded({ extended: false });
  10. deleteBaseRouter.get("/proc/:procID", deleteProcDB);
  11. deleteBaseRouter.get("/videoCard/:videoCardID", deleteVideoCardDB);
  12. deleteBaseRouter.post("/proc/:procID", postDeleteProcDB);
  13. deleteBaseRouter.post("/videoCard/:videoCardID", postDeleteVideoCardDB);
  14. module.exports = { deleteBaseRouter };