generate url for homepage
This commit is contained in:
parent
2dd1272958
commit
f76e142f80
2 changed files with 5 additions and 2 deletions
|
@ -36,8 +36,11 @@ app.configure( function(){
|
|||
});
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
console.log(req.header('host'));
|
||||
url = req.header('host');
|
||||
res.render('home.jade', {
|
||||
layout: false
|
||||
layout: false,
|
||||
locals: {url: url}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue