Skip to content

Commit 984f3ee

Browse files
committed
Primera página y favicon
1 parent 9971c09 commit 984f3ee

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

app.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var cookieParser = require('cookie-parser');
66
var bodyParser = require('body-parser');
77

88
var routes = require('./routes/index');
9-
var users = require('./routes/users');
109

1110
var app = express();
1211

@@ -15,15 +14,15 @@ app.set('views', path.join(__dirname, 'views'));
1514
app.set('view engine', 'ejs');
1615

1716
// uncomment after placing your favicon in /public
18-
//app.use(favicon(__dirname + '/public/favicon.ico'));
17+
// app.use(favicon(__dirname + '/public/favicon.ico'));
18+
app.use(favicon(__dirname + '/public/favicon.ico'));
1919
app.use(logger('dev'));
2020
app.use(bodyParser.json());
2121
app.use(bodyParser.urlencoded({ extended: false }));
2222
app.use(cookieParser());
2323
app.use(express.static(path.join(__dirname, 'public')));
2424

2525
app.use('/', routes);
26-
app.use('/users', users);
2726

2827
// catch 404 and forward to error handler
2928
app.use(function(req, res, next) {

public/favicon.ico

1.73 KB
Binary file not shown.

routes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var router = express.Router();
33

44
/* GET home page. */
55
router.get('/', function(req, res) {
6-
res.render('index', { title: 'Express' });
6+
res.render('index', { title: 'Quiz' });
77
});
88

99
module.exports = router;

routes/users.js

-9
This file was deleted.

views/index.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel='stylesheet' href='/stylesheets/style.css' />
66
</head>
77
<body>
8-
<h1><%= title %></h1>
9-
<p>Welcome to <%= title %></p>
8+
<h1>Bienvenido a <%= title %></h1>
9+
<p>El portal donde podrá crear sus propios juegos!</p>
1010
</body>
1111
</html>

0 commit comments

Comments
 (0)