mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
update cmd line
This commit is contained in:
parent
67a507d530
commit
8c55f6b749
214 changed files with 48553 additions and 48489 deletions
17
snippets/B5-Snippets/index.js
Normal file
17
snippets/B5-Snippets/index.js
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue