added zomboid server

This commit is contained in:
Ваше Имя
2025-02-19 12:48:12 +05:00
parent 22d1c94279
commit 62acfe1b0c
10 changed files with 28 additions and 1 deletions

View File

@ -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);