idk made a simpel game

This commit is contained in:
2026-03-25 04:35:20 +04:00
parent 069c514bfa
commit 623c26bc85
3 changed files with 85 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
const express = require('express');
const app = express();
const PORT = 6000;
const PASS = "hi";
let gameActive = "yes"; // Change to "no" to lock the game
app.get('/check', (req, res) => {
if (req.headers['x-password'] === PASS) {
res.json({ run: gameActive });
} else {
res.status(401).json({ error: "Invalid Credentials" });
}
});
app.listen(PORT, () => console.log(`Game Server active on port ${PORT}`));