add root difr
This commit is contained in:
parent
afcbc04b77
commit
aec8b41022
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
|
@ -4,7 +4,7 @@ var app = express();
|
|||
|
||||
app.use('/', express.static(__dirname + '/'));
|
||||
app.get('*', function(req, res) {
|
||||
return res.sendFile('index.html');
|
||||
return res.sendFile(__dirname + '/' + 'index.html');
|
||||
});
|
||||
|
||||
app.start = function(port, callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue