Spaces:
Running
Running
const express = require('express'); | |
const app = express(); | |
const PORT = process.env.PORT || 7860; | |
const RESPONSE_VALUE = true; | |
app.get('/', (req, res) => { | |
res.json({ success: RESPONSE_VALUE }); | |
}); | |
app.listen(PORT, () => { | |
console.log(`Server running on port ${PORT}`); | |
}); |