-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
48 lines (37 loc) · 930 Bytes
/
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
// loading all the modules
const express = require('express');
const ejs = require('ejs');
const app = express();
app.set('view engine', 'ejs');
app.engine('html', require('ejs').renderFile);
app.use(express.static("public"));
app.get("/",(req,res)=>{
res.render("Website.html");
});
app.get("/landing",(req,res)=>{
res.render("index.html");
});
app.get("/Vibration",(req,res)=>{
res.render("Vibration.html");
});
app.get("/spo2",(req,res)=>{
res.render("spo2.html");
});
app.get("/casestudy",(req,res)=>{
res.render("casestudy.html");
});
app.get("/Traffic",(req,res)=>{
res.render("Traffic.html");
})
app.get("/Impact",(req,res)=>{
res.render("impact.html");
})
app.get("/Chatbot",(req,res)=>{
res.render("Chatbot.html");
})
app.get("/About",(req,res)=>{
res.render("AboutPage.html");
})
app.listen(process.env.PORT ||3000,()=>{
console.log("Server started at port 3000");
});