-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
47 lines (31 loc) · 1.08 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
const express = require('express');
const app = express();
const path = require('path');
app.use(express.static('public'));
app.listen(process.env.PORT || 3000, function () {
console.log('Servidor corriendo en puerto 3000');
})
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/home.html'));
});
app.get('/login', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/login.html'));
});
app.get('/register', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/register.html'));
});
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/ofertas.html'));
});
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/tiendas oficiales.html'));
});
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/vender.html'));
});
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/ayuda.html'));
});
app.get('/', function(req,res) {
res.sendFile(path.resolve(__dirname + '/views/mis compras.html'));
});