API/api.medcify.app/node_modules/pm2/lib/templates/sample-apps/http-server/api.js

10 lines
241 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHead(200);
res.end('hey');
}).listen(process.env.PORT || 8000, function() {
console.log('App listening on port %d', server.address().port);
});