Skip to content

Commit

Permalink
head done and mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jevona Magdalena committed Apr 11, 2023
1 parent 5151e13 commit 158fbe5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const express = require('express');
const app = express();
const port = 3000;
const port = 8000;
// let minifyHTML = require('express-minify-html');
let options = {
maxAge: '2y',
Expand All @@ -26,7 +26,7 @@ app.use(express.static('public', options));
// }
// }));

var poemsRouter = require('./routes/poemas');
var poemsRouter = require('./routes/poems');
app.use('/', poemsRouter);

app.listen(port, () => {
Expand Down
11 changes: 11 additions & 0 deletions routes/poems.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const express = require('express');
const request = require('request');
const router = express.Router();

router.get('/', function (req, res) {
res.render('index', {
title: 'Start page'
});
});

module.exports = router;
Empty file removed routes/routes.js
Empty file.

0 comments on commit 158fbe5

Please sign in to comment.