Spaces:
Sleeping
Sleeping
| 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}`); | |
| }); | |