Update With Angular
This commit is contained in:
parent
4942b9758a
commit
1c6b19178e
4 changed files with 13 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue