Update
This commit is contained in:
parent
d40b8f64af
commit
9f61c3f3aa
1 changed files with 3 additions and 2 deletions
|
@ -15,13 +15,14 @@ webapp.use(morgan('combined'));
|
|||
|
||||
webapp.get('/', function(req, res) {
|
||||
console.log(__dirname);
|
||||
res.sendFile(__dirname + '/public/views/pages/index.html');
|
||||
//res.sendFile(__dirname + '/public/views/pages/index.html');
|
||||
res.send('works');
|
||||
});
|
||||
|
||||
webapp.use('/public', express.static(__dirname + '/public'));
|
||||
|
||||
//Webapp Initialize
|
||||
webapp.listen(port, ip);
|
||||
console.log('working');
|
||||
console.log('working again');
|
||||
|
||||
module.exports = webapp;
|
Loading…
Add table
Add a link
Reference in a new issue