-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
36 lines (28 loc) · 715 Bytes
/
server.js
File metadata and controls
36 lines (28 loc) · 715 Bytes
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
var express = require('express')
var app = express()
app.set('view engine', 'pug') //Utilizamos Pug como templete para las vistas
app.use(express.static(__dirname + '/public'))
app.get('/', function (req, res) {
res.render('index')
})
app.get('/tips', function (req, res) {
res.render('index')
})
app.get('/datos-curiosos-1', function (req, res) {
res.render('index')
})
app.get('/numero-phi', function (req, res) {
res.render('index')
})
app.get('/guias', function (req, res) {
res.render('index')
})
app.get('/reflexiones', function (req, res) {
res.render('index')
})
app.listen(80, function (err) {
if (err) {
console.log(err)
}
console.log('Itamath is running in port 3000 :v')
})