Initial commit
This commit is contained in:
6
routes/index/index.js
Normal file
6
routes/index/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports.index = function(req, res, render, next) {
|
||||
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
render('index.pug', res.locals)
|
||||
|
||||
}
|
||||
3
routes/index/urls.js
Normal file
3
routes/index/urls.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'/' : 'index'
|
||||
}
|
||||
5
routes/index/views/index.pug
Normal file
5
routes/index/views/index.pug
Normal file
@@ -0,0 +1,5 @@
|
||||
extends ../../../views/main.pug
|
||||
|
||||
block content
|
||||
p.
|
||||
Hello world !
|
||||
Reference in New Issue
Block a user