mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
const PORT_LISTEN = 8080
|
|
|
|
http=require("http")
|
|
|
|
|
|
http.createServer((req,res) =>{
|
|
|
|
res.writeHead(200,{
|
|
"content-type":"text/json"
|
|
})
|
|
res.write('{"nom":"JeanKul","prenom":"TaMere"}')
|
|
res.end()
|
|
}).listen(PORT_LISTEN,()=>{
|
|
console.log("Je suis allumé 😊 et j'écoute sur le port " + PORT_LISTEN)
|
|
|
|
}) |