From 9ce81d986da52f0664bf419b13d8db57df2401e1 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 14 Jan 2017 02:35:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BD=D0=B4=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f2e0f4d..bca9b8a 100644 --- a/index.js +++ b/index.js @@ -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