forked from Anubhav505/Guardant-Security
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
54 lines (43 loc) · 1.02 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const express = require("express");
const app = express("");
const path = require("path");
engine = require("ejs-mate");
app.engine("ejs", engine);
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));
app.use(express.static(path.join(__dirname, "/public")));
/* HOME */
app.get("/", (req, res) => {
res.render("home.ejs");
});
/* ABOUT US */
app.get("/about", (req, res) => {
res.render("about.ejs");
});
/* SERVICES */
app.get("/services", (req, res) => {
res.render("services.ejs");
});
/* GALLERY */
app.get("/gallery", (req, res) => {
res.render("gallery.ejs");
});
/* TRAINING */
app.get("/training", (req, res) => {
res.render("training.ejs");
});
/* CONTACT US */
app.get("/contact", (req, res) => {
res.render("contact.ejs");
});
/* SERVICE REQUEST */
app.get("/service", (req, res) => {
res.render("service.ejs");
});
/* CAREERS */
app.get("/careers", (req, res) => {
res.render("careers.ejs");
});
app.listen(8080, () => {
console.log("server is listening to port 8080");
});