modif server.js

This commit is contained in:
M1n-0
2026-06-01 17:01:18 +02:00
parent e3f7b64130
commit cc7e9da4d2

View File

@@ -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 })