-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
49 lines (36 loc) · 1.03 KB
/
server.js
File metadata and controls
49 lines (36 loc) · 1.03 KB
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
const express = require("express");
const ejs = require("ejs");
const { config } = require("dotenv")
const path = require('path');
const app = express();
let intialPath = path.join(__dirname, "views");
app.use(express.json());
app.use(express.static(__dirname));
app.set("view engine", "ejs");
app.get("/login", (req, res) => {
res.render("login")
});
app.get("/rest-or-org", (req,res) => {
res.render("rest-or-org")
});
app.get("/registration-restaurant", (req,res) => {
res.render("registration-restaurant")
});
app.get("/registration-organisation", (req,res) => {
res.render("registration-organisation")
});
app.get("/restaurantSide", (req,res) => {
res.render("restaurantSide")
});
app.get("/restaurantProfile", (req,res) => {
res.render("restaurantProfile")
});
app.get("/restaurantDonation", (req,res) => {
res.render("restaurantDonation")
});
app.get("/organisation", (req,res) => {
res.render("organisation")
});
app.listen(process.env.PORT, () => {
console.log("Server start on port 7000")
});