From 5cb00b90f64bddd6ccd6a544eee7aeff8854bb7e Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Mon, 6 Jan 2020 13:10:49 -0800 Subject: [PATCH] remove views/, add controllers/ --- packages/play-node-go/routes/index.js | 2 +- packages/play-node-go/views/error.jade | 6 ------ packages/play-node-go/views/index.jade | 5 ----- packages/play-node-go/views/layout.jade | 7 ------- 4 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 packages/play-node-go/views/error.jade delete mode 100644 packages/play-node-go/views/index.jade delete mode 100644 packages/play-node-go/views/layout.jade diff --git a/packages/play-node-go/routes/index.js b/packages/play-node-go/routes/index.js index ecca96a..5350528 100644 --- a/packages/play-node-go/routes/index.js +++ b/packages/play-node-go/routes/index.js @@ -3,7 +3,7 @@ var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { - res.render('index', { title: 'Express' }); + res.send('Hey!'); }); module.exports = router; diff --git a/packages/play-node-go/views/error.jade b/packages/play-node-go/views/error.jade deleted file mode 100644 index 51ec12c..0000000 --- a/packages/play-node-go/views/error.jade +++ /dev/null @@ -1,6 +0,0 @@ -extends layout - -block content - h1= message - h2= error.status - pre #{error.stack} diff --git a/packages/play-node-go/views/index.jade b/packages/play-node-go/views/index.jade deleted file mode 100644 index 3d63b9a..0000000 --- a/packages/play-node-go/views/index.jade +++ /dev/null @@ -1,5 +0,0 @@ -extends layout - -block content - h1= title - p Welcome to #{title} diff --git a/packages/play-node-go/views/layout.jade b/packages/play-node-go/views/layout.jade deleted file mode 100644 index 15af079..0000000 --- a/packages/play-node-go/views/layout.jade +++ /dev/null @@ -1,7 +0,0 @@ -doctype html -html - head - title= title - link(rel='stylesheet', href='/stylesheets/style.css') - body - block content