-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (31 loc) · 945 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const professor = require("./professors/members");
const semester = require("./courses/semester");
const course = require("./courses/course");
async function getProfessors() {
console.log("Please wait...");
var allProfessors = await professor.getAllProfessors();
return allProfessors;
}
async function getBasicCourses() {
console.log("Please wait...");
var isBasic = true;
var allCourses = await semester.checkSemesters(isBasic);
return allCourses;
}
async function getAdvancedCourses() {
console.log("Please wait...");
var isBasic = false;
var allCourses = await semester.checkSemesters(isBasic);
return allCourses;
}
async function getAdvancedCourseDetails(url) {
console.log("Please wait...");
var courseAdvancedDetails = await course.getAdvancedCourseDetails(url);
return courseAdvancedDetails;
}
module.exports = {
getProfessors,
getBasicCourses,
getAdvancedCourses,
getAdvancedCourseDetails
};