This commit is contained in:
MasterAcnolo
2025-06-26 16:19:26 +02:00
parent 4ad514b064
commit e7bbc109ba

View File

@@ -1,3 +1,5 @@
const PORT_LISTEN = 8080
http=require("http") http=require("http")
@@ -8,6 +10,7 @@ http.createServer((req,res) =>{
}) })
res.write('{"nom":"Jean","prenom":"Darme"}') res.write('{"nom":"Jean","prenom":"Darme"}')
res.end() res.end()
}).listen(8080,()=>{ }).listen(PORT_LISTEN,()=>{
console.log("J'écoute") console.log("Je suis allumé 😊 et j'écoute sur le port " + PORT_LISTEN)
}) })