исправление индекса
This commit is contained in:
4
index.js
4
index.js
@ -86,7 +86,7 @@ function handleListenerDisconnect() {
|
|||||||
handleListenerDisconnect();
|
handleListenerDisconnect();
|
||||||
|
|
||||||
|
|
||||||
app.use(express.static('build'));
|
app.use(express.static('build', {index: false}));
|
||||||
|
|
||||||
app.get('/sitemap.xml', function(req, res) {
|
app.get('/sitemap.xml', function(req, res) {
|
||||||
socketMysql.query('SELECT hash FROM `torrents`', function (error, rows, fields) {
|
socketMysql.query('SELECT hash FROM `torrents`', function (error, rows, fields) {
|
||||||
@ -129,7 +129,7 @@ app.get('*', function(req, res)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.sendfile(__dirname + '/build/index-page.html');
|
res.sendfile(__dirname + '/build/index.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
// start
|
// start
|
||||||
|
Reference in New Issue
Block a user