HyeonJun Jeon

[Style] Ical link change

......@@ -55,6 +55,7 @@ function process(sche, k, v) {
case "URL":
k = "url";
sche.subjectID = v.substring(v.indexOf("se_") + 3, v.indexOf("&m"));
v = `https://khcanvas.khu.ac.kr/courses/${sche.subjectID}/assignments/${sche.uid}`;
break;
default:
errArr.push(k);
......
......@@ -2,6 +2,7 @@ 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");
......@@ -11,6 +12,7 @@ async function route() {
dbRouter.use("/users", usersRouter);
dbRouter.use("/subjects", subjectsRouter);
dbRouter.use("/schedules_date", schedules_dateRouter);
dbRouter.use("/schedules_time", schedules_timeRouter);
}
route();
......