feat: init

This commit is contained in:
montaghanmy
2023-03-23 11:03:16 +01:00
commit 10fe6f78d1
11518 changed files with 509786 additions and 0 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...');
});