createDBRoute.js 386 B

123456789101112131415
  1. const express = require("express");
  2. const {
  3. createDataBase,
  4. postCreateDataBase,
  5. } = require("../Controllers/createDBController");
  6. const createRouter = express.Router();
  7. const urlencodedParser = express.urlencoded({ extended: false });
  8. createRouter.get("/", createDataBase);
  9. createRouter.post("/", urlencodedParser, postCreateDataBase);
  10. module.exports = {
  11. createRouter,
  12. };