-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
41 lines (36 loc) · 1 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
const express = require("express");
const ejs = require("ejs");
const bodyParser = require("body-parser");
const {
urlencoded
} = require("body-parser");
const app = express();
app.set('view engine', 'ejs');
app.use(bodyParser.urlencoded({
extended: true
}));
app.use(express.static("public"));
app.get('/', function (req, res) {
res.render("index");
});
app.get('/portfolio.ejs', function (req, res) {
res.render("portfolio");
});
app.get('/HuntCode.ejs', function (req, res) {
res.render("HuntCode");
});
app.get('/roundhacks.ejs', function (req, res) {
res.render("roundhacks");
});
app.get('/CaseCipher.ejs', function (req, res) {
res.render("CaseCipher");
});
app.get('/aurora-conference-1.ejs', function (req, res) {
res.render("aurora-conference-1");
});
app.get('/aurora-conference-2.ejs', function (req, res) {
res.render("aurora-conference-2");
});
app.listen(3000, function () {
console.log("server is running on port 3000");
});