DB.js 643 Bytes
const express = require("express");
const dbRouter = express.Router();

const schedules_dateRouter = require("./schedules_date");
const schedules_timeRouter = require("./Schedules_time");
const subjectsRouter = require("./Subjects");
const userSubjectRouter = require("./user-subject");
const usersRouter = require("./Users");

async function route() {
  dbRouter.use("/user-subject", userSubjectRouter);
  dbRouter.use("/users", usersRouter);
  dbRouter.use("/subjects", subjectsRouter);
  dbRouter.use("/schedules_date", schedules_dateRouter);
  dbRouter.use("/schedules_time", schedules_timeRouter);
}

route();

module.exports = dbRouter;