forked from pravega-web/pravega
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_routes.js
41 lines (30 loc) · 1020 Bytes
/
file_routes.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
var helper = require(__dirname+'/helper')();
module.exports = function(app){
app.get("/userhome", (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/user_home.html");
});
app.get("/template", (req, res) => {
console.log("Template");
res.sendFile(__dirname + "/public/front_end/views/template.html");
});
app.get("/login", (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/login.html");
});
app.get("/ca/home", (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/ca_home.html");
});
app.get("/vendor", (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/vendor.html");
});
app.get("/ca/signup", (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/ca_register.html");
});
app.get('/form', (req, res) => {
res.sendFile(__dirname + "/public/front_end/views/form.html")
})
// Logs
app.get("/logs", (req, res) => {
console.log(helper);
helper.sendLogs(res);
});
}