remove views/, add controllers/

This commit is contained in:
Sorrel Bri 2020-01-06 13:10:49 -08:00
parent 693ef7995e
commit 41b38e7eec
4 changed files with 1 additions and 19 deletions

View file

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' }); res.send('Hey!');
}); });
module.exports = router; module.exports = router;

View file

@ -1,6 +0,0 @@
extends layout
block content
h1= message
h2= error.status
pre #{error.stack}

View file

@ -1,5 +0,0 @@
extends layout
block content
h1= title
p Welcome to #{title}

View file

@ -1,7 +0,0 @@
doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content