исправление индекса

This commit is contained in:
Alexey Kasyanchuk
2017-01-14 02:35:33 +03:00
parent a8a362ffbc
commit 9ce81d986d

View File

@ -86,7 +86,7 @@ function handleListenerDisconnect() {
handleListenerDisconnect();
app.use(express.static('build'));
app.use(express.static('build', {index: false}));
app.get('/sitemap.xml', function(req, res) {
socketMysql.query('SELECT hash FROM `torrents`', function (error, rows, fields) {
@ -129,7 +129,7 @@ app.get('*', function(req, res)
return;
}
res.sendfile(__dirname + '/build/index-page.html');
res.sendfile(__dirname + '/build/index.html');
});
// start