Skip to content

Commit b2c94a4

Browse files
committed
changed cors
1 parent ee3855a commit b2c94a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ app.get("/", cors(), (req, res) => {
3131
res.redirect('https://docs.viaplanner.ca/course-api/');
3232
})
3333

34-
app.get("/status", [cors(), limiter], async (req, res) => {
34+
app.get("/status/timetable", [cors(), limiter], async (req, res) => {
3535
try {
36-
await axios.get("https://viaplanner.ca")
36+
await axios.get("https://timetable.viaplanner.ca")
3737
res.send({
3838
schemaVersion: 1,
3939
label: "Status",

src/routes/course.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const rateLimit = require("express-rate-limit");
66
const router = new express.Router()
77

88
let corsOptions = {
9-
origin: 'https://viaplanner.ca', // allow only viaplanner to use the api
9+
origin: 'https://timetable.viaplanner.ca', // allow only viaplanner to use the api
1010
optionsSuccessStatus: 200
1111
}
1212

0 commit comments

Comments
 (0)