update cmd line

This commit is contained in:
asep komarudin 2023-03-03 07:09:50 +07:00
parent 67a507d530
commit 8c55f6b749
214 changed files with 48553 additions and 48489 deletions

View file

@ -0,0 +1,17 @@
const http = require('http')
const fs = require('fs');
const PORT = 7000;
http.createServer(function (request, response) {
if (request.url == '/') {
fs.readFile('./templates/demo.html', function(err, data) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write(data);
return response.end();
});
}
else{
return response.end('Invalid request');
}
}).listen(PORT);