mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 20:53:02 -05:00
initial commit
This commit is contained in:
12
node_modules/nodemon/web/index.js
generated
vendored
Normal file
12
node_modules/nodemon/web/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
var http = require('http'),
|
||||
fs = require('fs');
|
||||
|
||||
var page = fs.readFileSync(__dirname + '/index.html', 'utf8');
|
||||
|
||||
var server = http.createServer(function (req, res) {
|
||||
res.writeHead(200, { 'content-type': 'text/html' });
|
||||
res.end(page);
|
||||
}).listen(process.env.PORT || 0, function () {
|
||||
console.log('Listening on http://localhost:' + server.address().port);
|
||||
});
|
||||
Reference in New Issue
Block a user