var http = require('http');
var express = require("express");
var app = express();
var port = process.env.port || 3000;
var server = http.createServer(function (req, res) {
console.log(req.url);
res.write("<html><body><h1>" + req.url + "</h1></body><html>");
res.end();
});
server.listen(port);
No comments:
Post a Comment