Spaces:
Sleeping
Sleeping
File size: 639 Bytes
5d5981a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | const express = require('express');
const app = express();
const PORT = 7860;
app.get('/', (req, res) => {
res.send({ message: "Turbo Tempest Reward Server is Running (Node.js)!" });
});
app.get('/reward', (req, res) => {
const userId = req.query.userid;
if (userId) {
console.log(`User ${userId} earned a reward!`);
// এখানে পরে আমরা Supabase/Appwrite SDK যুক্ত করব
return res.status(200).send("OK");
}
return res.status(400).send("No userid provided");
});
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
|