-
Notifications
You must be signed in to change notification settings - Fork 31
/
app.js
135 lines (101 loc) · 2.48 KB
/
app.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
app.use(express.static("public"));
app.set("view engine", "ejs");
app.get("/", (req, res) => {
res.render("index");
});
app.get("/frontend", (req, res) => {
res.render("frontend");
});
app.get("/backend", (req, res) => {
res.render("backend");
});
app.get("/angular", (req, res) => {
res.render("materials/angular");
});
app.get("/android", (req, res) => {
res.render("materials/android");
});
app.get("/bootstrap", (req, res) => {
res.render("materials/bootstrap");
});
app.get("/c", (req, res) => {
res.render("materials/c");
});
app.get("/cpp", (req, res) => {
res.render("materials/cpp");
});
app.get("/csharp", (req, res) => {
res.render("materials/c#");
});
app.get("/datastructure", (req, res) => {
res.render("materials/datastructure");
});
app.get("/deepLearning", (req, res) => {
res.render("materials/deepLearning");
});
app.get("/django", (req, res) => {
res.render("materials/django");
});
app.get("/git", (req, res) => {
res.render("materials/git");
});
app.get("/go", (req, res) => {
res.render("materials/go");
});
app.get("/haskell", (req, res) => {
res.render("materials/haskell");
});
app.get("/htmlcss", (req, res) => {
res.render("materials/htmlcss");
});
app.get("/javascript", (req, res) => {
res.render("materials/javascript");
});
app.get("/machinelearning", (req, res) => {
res.render("materials/machinelearning");
});
app.get("/matlab", (req, res) => {
res.render("materials/matlab");
});
app.get("/mongodb", (req, res) => {
res.render("materials/mongodb");
});
app.get("/nodejs", (req, res) => {
res.render("materials/nodejs");
});
app.get("/php", (req, res) => {
res.render("materials/php");
});
app.get("/prolog", (req, res) => {
res.render("materials/prolog");
});
app.get("/python", (req, res) => {
res.render("materials/python");
});
app.get("/react", (req, res) => {
res.render("materials/react");
});
app.get("/redux", (req, res) => {
res.render("materials/redux");
});
app.get("/rlanguage", (req, res) => {
res.render("materials/rlanguage");
});
app.get("/ruby", (req, res) => {
res.render("materials/ruby");
});
app.get("/scala", (req, res) => {
res.render("scala");
});
app.get("/vue", (req, res) => {
res.render("materials/vue");
});
app.get("/webaccessibility", (req, res) => {
res.render("materials/webaccessibility");
});
app.listen(3000, function () {
console.log("running at port 3000");
});