added zomboid server
This commit is contained in:
@ -10,10 +10,16 @@ const html = path.join(__dirname, '/html');
|
||||
console.log(obj["path"]);
|
||||
app.use(obj["path"],express.static(html))
|
||||
app.set('etag', false);
|
||||
|
||||
|
||||
app.get(obj["path"], (req, res) => {
|
||||
res.sendFile(__dirname + '/html/index.html');
|
||||
})
|
||||
|
||||
app.get("*", (req, res) => {
|
||||
res.location("https://n0r.su");
|
||||
})
|
||||
|
||||
const port = process.argv[2] || 8090;
|
||||
const http = require("http").Server(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user