modif server.js
This commit is contained in:
@@ -6,9 +6,9 @@ dotenv.config()
|
||||
const app = express()
|
||||
const port = process.env.PING_LISTEN_PORT
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('')
|
||||
})
|
||||
app.use((req, res) => {
|
||||
res.status(404);
|
||||
});
|
||||
|
||||
app.get('/ping', (req, res) => {
|
||||
res.json({ headers: req.headers })
|
||||
|
||||
Reference in New Issue
Block a user