This commit is contained in:
briandavidjoyner 2017-10-27 09:38:27 -04:00
parent d40b8f64af
commit 9f61c3f3aa

View file

@ -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;