-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
54 lines (40 loc) · 1.44 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
42
43
44
45
46
47
48
49
50
51
52
53
54
const express = require("express");
const path = require("path");
const app = express();
app.use(express.static("public"));
app.get("/", (req, res) => {
res.sendFile(path.join(__dirname, "./views/home.html"));
});
app.get("/contacto.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/contacto.html"));
});
app.get("/nuestra-empresa.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/nuestra-empresa.html"));
});
app.get("/empresas-amigas.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/empresas-amigas.html"));
});
app.get("/buenosAires.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/buenosAires.html"));
});
app.get("/bogota.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/bogota.html"));
});
app.get("/montevideo.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/montevideo.html"));
});
app.get("/login.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/login.html"));
});
app.get("/register.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/register.html"));
});
app.get("/product-cart.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/product-cart.html"));
});
app.get("/product-detail.html", (req, res) => {
res.sendFile(path.join(__dirname, "./views/product-detail.html"));
});
app.listen(3000, () => {
console.log("Servidor escuchando en puerto 3000 | http://localhost:3000");
});