📁 Changed TDrive root folder (#16)

📁 Changed TDrive root folder
This commit is contained in:
Montassar Ghanmy
2023-04-11 10:04:29 +01:00
committed by GitHub
parent 3b3f67af07
commit e0615fa867
10548 changed files with 48 additions and 48 deletions
+13
View File
@@ -0,0 +1,13 @@
var connect = require('connect');
var serveStatic = require('serve-static');
connect()
.use(serveStatic(__dirname + '/../public/'), {
fallthrough: true,
})
.use((req, res, next) => {
req.path = req.url = '/index.html';
serveStatic(__dirname + '/../public/')(req, res, next);
})
.listen(8080, function() {
console.log('Server running on 8080...');
});