diff --git a/index.js b/index.js index 4507ce5..cc36b6a 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ if (config.hostDevFiles) { app.get('*', (req, res, next) => { let file = path.join(dir, req.path); - if (fs.existsSync(file)) { + if (fs.existsSync(file) && !file.endsWith('/') && !file.endsWith('\\')) { res.sendFile(file); } else { res.sendFile(path.join(dir, 'index.html'));