Toggle navigation
Toggle navigation
This project
Loading...
Sign in
HyeonJun Jeon
/
Extended-Calendar
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
HyeonJun Jeon
2022-06-07 00:28:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e7d89afb1847be8bfb401053cba6efcfeba77023
e7d89afb
1 parent
42f8540a
[Style] Ical link change
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
server/libs/ICal.js
server/routers/DB.js
server/libs/ICal.js
View file @
e7d89af
...
...
@@ -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
);
...
...
server/routers/DB.js
View file @
e7d89af
...
...
@@ -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
();
...
...
Please
register
or
login
to post a comment