WhiteDog

I deleted the files again! and fix .gitignore

...@@ -2,3 +2,7 @@ ...@@ -2,3 +2,7 @@
2 node_modules* 2 node_modules*
3 3
4 .vscode* 4 .vscode*
5 +
6 +helloWorld.js
7 +
8 +package-lock.json
...\ No newline at end of file ...\ No newline at end of file
......
1 -var http = require('http');
2 -
3 -http.createServer(function (req, res) {
4 - var path = req.url.replace(/\/?(?:\?.*)?$/, '').toLowerCase();
5 - switch (path) {
6 - case '':
7 - res.writeHead(200, { 'Content-Type': 'text/plain' });
8 - res.end('Homepage');
9 - break;
10 - case '/about':
11 - res.writeHead(200, { 'Content-Type': 'text/plain' });
12 - res.end('About');
13 - default:
14 - res.writeHead(404, { 'Content-Type': 'text/plain' });
15 - res.end('Not Found');
16 - break;
17 - }
18 -}).listen(3000);
19 -
20 -console.log('Server started on localhost:3000; press Ctrl-C to terminate....');
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.