WhiteDog

I deleted the files again! and fix .gitignore

#⹫
node_modules*
.vscode*
\ No newline at end of file
.vscode*
helloWorld.js
package-lock.json
\ No newline at end of file
......
var http = require('http');
http.createServer(function (req, res) {
var path = req.url.replace(/\/?(?:\?.*)?$/, '').toLowerCase();
switch (path) {
case '':
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Homepage');
break;
case '/about':
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('About');
default:
res.writeHead(404, { 'Content-Type': 'text/plain' });
res.end('Not Found');
break;
}
}).listen(3000);
console.log('Server started on localhost:3000; press Ctrl-C to terminate....');
\ No newline at end of file
This diff is collapsed. Click to expand it.