Update With Angular

This commit is contained in:
briandavidjoyner 2017-11-04 22:32:01 -04:00
parent 4942b9758a
commit 1c6b19178e
4 changed files with 13 additions and 4 deletions

View file

@ -12,14 +12,14 @@ var port = process.env.PORT || process.env.OPENSHIFT_NODEJS_PORT || 8080;
//app.use(morgan('combined'));
//External Routing
app.get('/', function (req, res) {
app.use('/public', express.static(__dirname + '/public'));
app.get('*', function (req, res) {
console.log('works as expected');
res.sendFile(__dirname + '/public/views/pages/index.html');
//res.send('Hello World Again!');
});
app.use('/public', express.static(__dirname + '/public'));
//app Initialize
app.listen(port, ip);
//console.log('live on ip: ' + ip + ':' + port);