Fix Route
This commit is contained in:
parent
16a61d71f3
commit
d40b8f64af
1 changed files with 3 additions and 11 deletions
14
server.js
14
server.js
|
@ -12,18 +12,10 @@ var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
|
|||
webapp.use(morgan('combined'));
|
||||
|
||||
//External Routing
|
||||
webapp.get('/', function (req, res, next) {
|
||||
|
||||
var options = {};
|
||||
|
||||
res.sendFile(__dirname + '/public/views/pages/index.html', options, function (err) {
|
||||
if (err) {
|
||||
next(err);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
webapp.get('/', function(req, res) {
|
||||
console.log(__dirname);
|
||||
res.sendFile(__dirname + '/public/views/pages/index.html');
|
||||
});
|
||||
|
||||
webapp.use('/public', express.static(__dirname + '/public'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue