From 3ae3bc0f0d1e1869223bb5318aff4bf8040a6f97 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 24 Jul 2018 15:14:59 +0200 Subject: [PATCH] altro capitolo.. --- routes/index.js | 1 + routes/metadata.js | 9 +++++++++ views/metadata.pug | 7 +++++++ views/torok.pug | 2 ++ 4 files changed, 19 insertions(+) create mode 100644 routes/metadata.js create mode 100644 views/metadata.pug diff --git a/routes/index.js b/routes/index.js index a1329c1..7fdde63 100644 --- a/routes/index.js +++ b/routes/index.js @@ -4,5 +4,6 @@ var router = express.Router(); /* GET home page. */ router.get('/', (req, res) => res.render('index')); router.use('/subito', require('./tor')); +router.use('/metadata', require('./metadata')); module.exports = router; diff --git a/routes/metadata.js b/routes/metadata.js new file mode 100644 index 0000000..4f75cc9 --- /dev/null +++ b/routes/metadata.js @@ -0,0 +1,9 @@ +var express = require('express'); +var router = express.Router(); + +router.get('/', (req, res) => { + res.render('metadata'); +}); + + +module.exports = router; diff --git a/views/metadata.pug b/views/metadata.pug new file mode 100644 index 0000000..b099173 --- /dev/null +++ b/views/metadata.pug @@ -0,0 +1,7 @@ +extends layout + +block content + p. + Non male per una principiante no? Iniziavo a prendere fiducia e a pensare di + potermela cavare da sola... + diff --git a/views/torok.pug b/views/torok.pug index 09dfac1..fcd7d22 100644 --- a/views/torok.pug +++ b/views/torok.pug @@ -14,4 +14,6 @@ block content Comunque ero curiosa di vedere se c'erano altre informazioni nella foto e quindi mi misi a cercare un programma per vedere questi famosi metadati. + img(src="/img/kriptonite.jpg") +