import { Router } from "express";

import getSchedule from "./getSchedule.js";

import { restrictToHosts } from "../../../../pkg/middleware/restrictToHosts.js";
import { requireAuth } from "../../../../pkg/middleware/authMiddleware.js";

const router = Router();

router.use("/", getSchedule);
// router.use(
//     "/",
//     requireAuth("user", ["systemAdmin", "admin"]),
//     restrictToHosts([
//         "usmcd1vms036.alpla.net",
//         "USMCD1VMS036.alpla.net",
//         "https://usmcd1vms036.alpla.net",
//     ]),
//     addServer
// );
// router.use(
//     "/",
//     requireAuth("user", ["systemAdmin", "admin"]),
//     restrictToHosts([
//         "usmcd1vms036.alpla.net",
//         "USMCD1VMS036.alpla.net",
//         "https://usmcd1vms036.alpla.net",
//     ]),
//     updateServer
// );

export default router;
