Showing
2 changed files
with
3 additions
and
0 deletions
... | @@ -55,6 +55,7 @@ function process(sche, k, v) { | ... | @@ -55,6 +55,7 @@ function process(sche, k, v) { |
55 | case "URL": | 55 | case "URL": |
56 | k = "url"; | 56 | k = "url"; |
57 | sche.subjectID = v.substring(v.indexOf("se_") + 3, v.indexOf("&m")); | 57 | sche.subjectID = v.substring(v.indexOf("se_") + 3, v.indexOf("&m")); |
58 | + v = `https://khcanvas.khu.ac.kr/courses/${sche.subjectID}/assignments/${sche.uid}`; | ||
58 | break; | 59 | break; |
59 | default: | 60 | default: |
60 | errArr.push(k); | 61 | errArr.push(k); | ... | ... |
... | @@ -2,6 +2,7 @@ const express = require("express"); | ... | @@ -2,6 +2,7 @@ const express = require("express"); |
2 | const dbRouter = express.Router(); | 2 | const dbRouter = express.Router(); |
3 | 3 | ||
4 | const schedules_dateRouter = require("./schedules_date"); | 4 | const schedules_dateRouter = require("./schedules_date"); |
5 | +const schedules_timeRouter = require("./Schedules_time"); | ||
5 | const subjectsRouter = require("./Subjects"); | 6 | const subjectsRouter = require("./Subjects"); |
6 | const userSubjectRouter = require("./user-subject"); | 7 | const userSubjectRouter = require("./user-subject"); |
7 | const usersRouter = require("./Users"); | 8 | const usersRouter = require("./Users"); |
... | @@ -11,6 +12,7 @@ async function route() { | ... | @@ -11,6 +12,7 @@ async function route() { |
11 | dbRouter.use("/users", usersRouter); | 12 | dbRouter.use("/users", usersRouter); |
12 | dbRouter.use("/subjects", subjectsRouter); | 13 | dbRouter.use("/subjects", subjectsRouter); |
13 | dbRouter.use("/schedules_date", schedules_dateRouter); | 14 | dbRouter.use("/schedules_date", schedules_dateRouter); |
15 | + dbRouter.use("/schedules_time", schedules_timeRouter); | ||
14 | } | 16 | } |
15 | 17 | ||
16 | route(); | 18 | route(); | ... | ... |
-
Please register or login to post a comment